-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index 63073c4..f3792e4 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -335,13 +335,13 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
335 | commonCombo = new QComboBox( secondToolBar ); | 335 | commonCombo = new QComboBox( secondToolBar ); |
336 | commonCombo->setMaximumWidth(236); | 336 | commonCombo->setMaximumWidth(236); |
337 | 337 | ||
338 | editCommandListMenu->insertItem( tr( "Quick Edit" ) ); | 338 | editCommandListMenu->insertItem( tr( "Quick Edit" ) ); |
339 | if( listHidden) { | 339 | if( listHidden) { |
340 | secondToolBar->hide(); | 340 | secondToolBar->hide(); |
341 | editCommandListMenu->setItemEnabled(-22 ,FALSE); | 341 | editCommandListMenu->setItemEnabled(-23 ,FALSE); |
342 | } | 342 | } |
343 | editCommandListMenu->insertItem(tr( "Edit" ) ); | 343 | editCommandListMenu->insertItem(tr( "Edit" ) ); |
344 | 344 | ||
345 | cfg.setGroup("Commands"); | 345 | cfg.setGroup("Commands"); |
346 | commonCombo->setInsertionPolicy(QComboBox::AtCurrent); | 346 | commonCombo->setInsertionPolicy(QComboBox::AtCurrent); |
347 | 347 | ||
@@ -831,24 +831,24 @@ void Konsole::editCommandListMenuSelected(int iD) | |||
831 | cfg.setGroup("Menubar"); | 831 | cfg.setGroup("Menubar"); |
832 | if( iD == -3) { | 832 | if( iD == -3) { |
833 | if(!secondToolBar->isHidden()) { | 833 | if(!secondToolBar->isHidden()) { |
834 | secondToolBar->hide(); | 834 | secondToolBar->hide(); |
835 | configMenu->changeItem( iD,tr( "Show Command List" )); | 835 | configMenu->changeItem( iD,tr( "Show Command List" )); |
836 | cfg.writeEntry("Hidden","TRUE"); | 836 | cfg.writeEntry("Hidden","TRUE"); |
837 | configMenu->setItemEnabled(-22 ,FALSE); | 837 | configMenu->setItemEnabled(-23 ,FALSE); |
838 | } else { | 838 | } else { |
839 | secondToolBar->show(); | 839 | secondToolBar->show(); |
840 | configMenu->changeItem( iD,tr( "Hide Command List" )); | 840 | configMenu->changeItem( iD,tr( "Hide Command List" )); |
841 | cfg.writeEntry("Hidden","FALSE"); | 841 | cfg.writeEntry("Hidden","FALSE"); |
842 | configMenu->setItemEnabled(-22 ,TRUE); | 842 | configMenu->setItemEnabled(-23 ,TRUE); |
843 | 843 | ||
844 | if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") { | 844 | if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") { |
845 | configMenu->setItemChecked(-22,TRUE); | 845 | configMenu->setItemChecked(-23,TRUE); |
846 | commonCombo->setEditable( TRUE ); | 846 | commonCombo->setEditable( TRUE ); |
847 | } else { | 847 | } else { |
848 | configMenu->setItemChecked(-22,FALSE); | 848 | configMenu->setItemChecked(-23,FALSE); |
849 | commonCombo->setEditable( FALSE ); | 849 | commonCombo->setEditable( FALSE ); |
850 | } | 850 | } |
851 | } | 851 | } |
852 | } | 852 | } |
853 | if( iD == -23) { | 853 | if( iD == -23) { |
854 | cfg.setGroup("Commands"); | 854 | cfg.setGroup("Commands"); |