Diffstat (limited to 'noncore/net/wellenreiter/gui/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp index be7a528..7dcc583 100644 --- a/noncore/net/wellenreiter/gui/main.cpp +++ b/noncore/net/wellenreiter/gui/main.cpp | |||
@@ -43,24 +43,25 @@ int main( int argc, char **argv ) | |||
43 | a.setMainWidget( w ); | 43 | a.setMainWidget( w ); |
44 | w->setCaption( "Wellenreiter II" ); | 44 | w->setCaption( "Wellenreiter II" ); |
45 | w->show(); | 45 | w->show(); |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | a.processEvents(); // show the window before doing the safety checks | 48 | a.processEvents(); // show the window before doing the safety checks |
49 | int result = -1; | 49 | int result = -1; |
50 | static int killed = false; | 50 | static int killed = false; |
51 | 51 | ||
52 | bool check = true; | 52 | bool check = true; |
53 | for ( int i = 1; i < argc; ++i ) | 53 | for ( int i = 1; i < argc; ++i ) |
54 | { | 54 | { |
55 | qDebug( "Wellenreiter::main() parsing argument %d = '%s'", i, argv[i] ); | ||
55 | if ( !strcmp( "-nocheck", argv[i] ) ) | 56 | if ( !strcmp( "-nocheck", argv[i] ) ) |
56 | { | 57 | { |
57 | qDebug( "-nocheck found" ); | 58 | qDebug( "-nocheck found" ); |
58 | check = false; | 59 | check = false; |
59 | break; | 60 | break; |
60 | } | 61 | } |
61 | } | 62 | } |
62 | 63 | ||
63 | if ( check ) | 64 | if ( check ) |
64 | { | 65 | { |
65 | // root check | 66 | // root check |
66 | if ( getuid() ) | 67 | if ( getuid() ) |