summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/main.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/main.cpp b/noncore/settings/networksettings2/main.cpp
index b32b323..200e31b 100644
--- a/noncore/settings/networksettings2/main.cpp
+++ b/noncore/settings/networksettings2/main.cpp
@@ -54,24 +54,25 @@ int main( int argc, char * argv[] ) {
54 if( rmv ) { 54 if( rmv ) {
55 memmove( argv+i, argv+i+rmv, 55 memmove( argv+i, argv+i+rmv,
56 sizeof( char * ) * (argc-i-rmv) ); 56 sizeof( char * ) * (argc-i-rmv) );
57 i --; 57 i --;
58 argc -= rmv; 58 argc -= rmv;
59 } 59 }
60 } 60 }
61 61
62 if( strstr( argv[0], "-request" ) ) { 62 if( strstr( argv[0], "-request" ) ) {
63 // called from system to request something 63 // called from system to request something
64 GuiType = QApplication::Tty; 64 GuiType = QApplication::Tty;
65 Action = ACT_REQUEST; 65 Action = ACT_REQUEST;
66 Log(("Request : %s\n", argv[1] ));
66 } 67 }
67 68
68 // Start Qt 69 // Start Qt
69#ifdef _WS_QWS_ 70#ifdef _WS_QWS_
70 // because QPEApplication does not handle GuiType well 71 // because QPEApplication does not handle GuiType well
71 if( GuiType == QApplication::Tty ) { 72 if( GuiType == QApplication::Tty ) {
72 // this cast is NOT correct but we do not use 73 // this cast is NOT correct but we do not use
73 // TheApp anymore ... 74 // TheApp anymore ...
74 TheApp = (QPEApplication *)new QApplication( argc, argv, GuiType ); 75 TheApp = (QPEApplication *)new QApplication( argc, argv, GuiType );
75 } else { 76 } else {
76 TheApp = new QPEApplication( argc, argv, GuiType ); 77 TheApp = new QPEApplication( argc, argv, GuiType );
77 } 78 }