author | mickeyl <mickeyl> | 2004-01-05 23:37:19 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-05 23:37:19 (UTC) |
commit | 4b272b07b86e4dce14ab71054a3741fa9ad33572 (patch) (unidiff) | |
tree | 381bf51d8e3258cbd15d36815b13dcfcac33845c /noncore/net/wellenreiter/gui/main.cpp | |
parent | fa6a2e24a70be69724387355970814c0fb63701d (diff) | |
download | opie-4b272b07b86e4dce14ab71054a3741fa9ad33572.zip opie-4b272b07b86e4dce14ab71054a3741fa9ad33572.tar.gz opie-4b272b07b86e4dce14ab71054a3741fa9ad33572.tar.bz2 |
add -nocheck command line option
Diffstat (limited to 'noncore/net/wellenreiter/gui/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/main.cpp | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp index 55a5260..dd757b5 100644 --- a/noncore/net/wellenreiter/gui/main.cpp +++ b/noncore/net/wellenreiter/gui/main.cpp | |||
@@ -54,3 +54,17 @@ int main( int argc, char **argv ) | |||
54 | int result = -1; | 54 | int result = -1; |
55 | static int killed = false; | ||
55 | 56 | ||
57 | bool check = true; | ||
58 | for ( int i = 1; i < argc; ++i ) | ||
59 | { | ||
60 | if ( !strcmp( "-nocheck", argv[i] ) ) | ||
61 | { | ||
62 | qDebug( "-nocheck found" ); | ||
63 | check = false; | ||
64 | break; | ||
65 | } | ||
66 | } | ||
67 | |||
68 | if ( check ) | ||
69 | { | ||
56 | // root check | 70 | // root check |
@@ -68,4 +82,2 @@ int main( int argc, char **argv ) | |||
68 | 82 | ||
69 | static int killed = false; | ||
70 | |||
71 | QString line; | 83 | QString line; |
@@ -99,2 +111,3 @@ int main( int argc, char **argv ) | |||
99 | } | 111 | } |
112 | } | ||
100 | 113 | ||
@@ -102,2 +115,5 @@ int main( int argc, char **argv ) | |||
102 | 115 | ||
116 | if ( check ) | ||
117 | { | ||
118 | |||
103 | if ( killed ) | 119 | if ( killed ) |
@@ -112,2 +128,3 @@ int main( int argc, char **argv ) | |||
112 | delete w; | 128 | delete w; |
129 | } | ||
113 | return 0; | 130 | return 0; |