From 612f02246dbb07db268e158f6959727a6598c6d5 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 02 Feb 2002 00:17:02 +0000 Subject: startup command list edit enable bug fixed. added env to commandlist --- diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index efcb1f2..f154bb8 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp @@ -52,7 +52,6 @@ #include "konsole.h" #include "keytrans.h" - class EKNumTabBar : public QTabBar { public: void numberTabs() @@ -112,6 +111,7 @@ static const char *commonCmds[] = "df ", "dmesg", "echo ", + "env", "find ", "free", "grep ", @@ -121,7 +121,6 @@ static const char *commonCmds[] = "mv ", "nc localhost 7776", "nc localhost 7777", - "netstat ", "nslookup ", "ping ", "ps aux", @@ -297,10 +296,12 @@ void Konsole::init(const char* _pgm, QStrList & _args) commonCombo = new QComboBox( secondToolBar ); - if( listHidden) - secondToolBar->hide(); configMenu->insertItem( "Edit Command List"); - + if( listHidden) { + secondToolBar->hide(); + configMenu->setItemEnabled(-20 ,FALSE); + } + cfg.setGroup("Commands"); commonCombo->setInsertionPolicy(QComboBox::AtCurrent); -- cgit v0.9.0.2