summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp9
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
@@ -49,13 +49,12 @@
#include <stdlib.h>
#include <assert.h>
#include "konsole.h"
#include "keytrans.h"
-
class EKNumTabBar : public QTabBar {
public:
void numberTabs()
{
// Yes, it really is this messy. QTabWidget needs functions
// that provide acces to tabs in a sequential way.
@@ -109,22 +108,22 @@ static const char *commonCmds[] =
"chmod ",
"cp ",
"dc ",
"df ",
"dmesg",
"echo ",
+ "env",
"find ",
"free",
"grep ",
"ifconfig ",
"ipkg ",
"mkdir ",
"mv ",
"nc localhost 7776",
"nc localhost 7777",
- "netstat ",
"nslookup ",
"ping ",
"ps aux",
"pwd ",
"rm ",
"rmdir ",
@@ -294,15 +293,17 @@ void Konsole::init(const char* _pgm, QStrList & _args)
secondToolBar = new QPEToolBar( this );
secondToolBar->setHorizontalStretchable( TRUE );
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);
for (int i = 0; commonCmds[i] != NULL; i++) {
commonCombo->insertItem( commonCmds[i], i );