author | llornkcor <llornkcor> | 2002-02-02 00:17:02 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-02 00:17:02 (UTC) |
commit | 612f02246dbb07db268e158f6959727a6598c6d5 (patch) (unidiff) | |
tree | 7dceba4874ad04c35bd6e0cf7c0d053d931ea6d2 /core | |
parent | 5a3c8bf8c1033882685f3a6d897c6fa5229403e3 (diff) | |
download | opie-612f02246dbb07db268e158f6959727a6598c6d5.zip opie-612f02246dbb07db268e158f6959727a6598c6d5.tar.gz opie-612f02246dbb07db268e158f6959727a6598c6d5.tar.bz2 |
startup command list edit enable bug fixed. added env to commandlist
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ | |||
52 | #include "konsole.h" | 52 | #include "konsole.h" |
53 | #include "keytrans.h" | 53 | #include "keytrans.h" |
54 | 54 | ||
55 | |||
56 | class EKNumTabBar : public QTabBar { | 55 | class EKNumTabBar : public QTabBar { |
57 | public: | 56 | public: |
58 | void numberTabs() | 57 | void numberTabs() |
@@ -112,6 +111,7 @@ static const char *commonCmds[] = | |||
112 | "df ", | 111 | "df ", |
113 | "dmesg", | 112 | "dmesg", |
114 | "echo ", | 113 | "echo ", |
114 | "env", | ||
115 | "find ", | 115 | "find ", |
116 | "free", | 116 | "free", |
117 | "grep ", | 117 | "grep ", |
@@ -121,7 +121,6 @@ static const char *commonCmds[] = | |||
121 | "mv ", | 121 | "mv ", |
122 | "nc localhost 7776", | 122 | "nc localhost 7776", |
123 | "nc localhost 7777", | 123 | "nc localhost 7777", |
124 | "netstat ", | ||
125 | "nslookup ", | 124 | "nslookup ", |
126 | "ping ", | 125 | "ping ", |
127 | "ps aux", | 126 | "ps aux", |
@@ -297,9 +296,11 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
297 | 296 | ||
298 | commonCombo = new QComboBox( secondToolBar ); | 297 | commonCombo = new QComboBox( secondToolBar ); |
299 | 298 | ||
300 | if( listHidden) | ||
301 | secondToolBar->hide(); | ||
302 | configMenu->insertItem( "Edit Command List"); | 299 | configMenu->insertItem( "Edit Command List"); |
300 | if( listHidden) { | ||
301 | secondToolBar->hide(); | ||
302 | configMenu->setItemEnabled(-20 ,FALSE); | ||
303 | } | ||
303 | 304 | ||
304 | cfg.setGroup("Commands"); | 305 | cfg.setGroup("Commands"); |
305 | commonCombo->setInsertionPolicy(QComboBox::AtCurrent); | 306 | commonCombo->setInsertionPolicy(QComboBox::AtCurrent); |