diff --git a/simplestringlisteditor.cpp b/simplestringlisteditor.cpp index 4180e99ca..2e986f096 100644 --- a/simplestringlisteditor.cpp +++ b/simplestringlisteditor.cpp @@ -84,17 +84,6 @@ SimpleStringListEditor::SimpleStringListEditor( QWidget * parent, this, SLOT(slotAdd()) ); } - if ( buttons & Remove ) { - if ( removeLabel.isEmpty() ) - mRemoveButton = new QPushButton( i18n("&Remove"), this ); - else - mRemoveButton = new QPushButton( removeLabel, this ); - mRemoveButton->setAutoDefault( false ); - mRemoveButton->setEnabled( false ); // no selection yet - vlay->addWidget( mRemoveButton ); - connect( mRemoveButton, SIGNAL(clicked()), - this, SLOT(slotRemove()) ); - } if ( buttons & Modify ) { if ( modifyLabel.isEmpty() ) @@ -110,6 +99,18 @@ SimpleStringListEditor::SimpleStringListEditor( QWidget * parent, this, SLOT(slotModify()) ); } + if ( buttons & Remove ) { + if ( removeLabel.isEmpty() ) + mRemoveButton = new QPushButton( i18n("&Remove"), this ); + else + mRemoveButton = new QPushButton( removeLabel, this ); + mRemoveButton->setAutoDefault( false ); + mRemoveButton->setEnabled( false ); // no selection yet + vlay->addWidget( mRemoveButton ); + connect( mRemoveButton, SIGNAL(clicked()), + this, SLOT(slotRemove()) ); + } + if ( buttons & Up ) { if ( !(buttons & Down) ) { kDebug() << "Are you sure you want to use an Up button"