summaryrefslogtreecommitdiffstats
path: root/src/collectionfieldsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/collectionfieldsdialog.cpp')
-rw-r--r--src/collectionfieldsdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/collectionfieldsdialog.cpp b/src/collectionfieldsdialog.cpp
index ef3583f..7d1fc46 100644
--- a/src/collectionfieldsdialog.cpp
+++ b/src/collectionfieldsdialog.cpp
@@ -254,7 +254,6 @@ CollectionFieldsDialog::CollectionFieldsDialog(Data::CollPtr coll_, TQWidget* pa
// need to stretch at bottom
vbox->setStretchFactor(new TQWidget(vbox), 1);
- TDEAcceleratorManager::manage(vbox);
// keep a default collection
m_defaultCollection = CollectionFactory::collection(m_coll->type(), true);
@@ -279,6 +278,9 @@ CollectionFieldsDialog::~CollectionFieldsDialog() {
}
void CollectionFieldsDialog::slotSelectInitial() {
+ // the accel management is here so that it doesn't cause conflicts with the
+ // ones explicitly set in the constructor
+ TDEAcceleratorManager::manage(mainWidget());
m_fieldsBox->setSelected(0, true);
}
@@ -405,7 +407,7 @@ void CollectionFieldsDialog::slotNew() {
}
TQString name = TQString::fromLatin1("custom") + TQString::number(m_newFields.count()+1);
- int count = m_newFields.count() + 1;
+ size_t count = m_newFields.count() + 1;
TQString title = i18n("New Field") + TQString::fromLatin1(" %1").arg(count);
while(m_fieldsBox->findItem(title)) {
++count;