Diffstat (limited to 'noncore/settings/networksettings2/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/main.cpp b/noncore/settings/networksettings2/main.cpp index 200e31b..9004d19 100644 --- a/noncore/settings/networksettings2/main.cpp +++ b/noncore/settings/networksettings2/main.cpp | |||
@@ -92,12 +92,13 @@ int main( int argc, char * argv[] ) { | |||
92 | char * MyArgv[4]; | 92 | char * MyArgv[4]; |
93 | MyArgv[0] = "networksettings2"; | 93 | MyArgv[0] = "networksettings2"; |
94 | MyArgv[1] = "--prompt"; | 94 | MyArgv[1] = "--prompt"; |
95 | MyArgv[2] = argv[1]; | 95 | MyArgv[2] = argv[1]; |
96 | MyArgv[3] = NULL; | 96 | MyArgv[3] = NULL; |
97 | NSResources->system().execAsUser( S, MyArgv ); | 97 | NSResources->system().execAsUser( S, MyArgv ); |
98 | Log(("FAILED %s-cNN-allowed\n", argv[1] )); | ||
98 | // if we come here , failed | 99 | // if we come here , failed |
99 | printf( "%s-cNN-disallowed", argv[1] ); | 100 | printf( "%s-cNN-disallowed", argv[1] ); |
100 | } | 101 | } |
101 | } | 102 | } |
102 | break; | 103 | break; |
103 | case ACT_REGEN : | 104 | case ACT_REGEN : |
@@ -106,14 +107,17 @@ int main( int argc, char * argv[] ) { | |||
106 | rv = (NS.regenerate()) ? 1 : 0; | 107 | rv = (NS.regenerate()) ? 1 : 0; |
107 | } | 108 | } |
108 | break; | 109 | break; |
109 | case ACT_PROMPT : | 110 | case ACT_PROMPT : |
110 | { ActivateProfile AP(argv[1]); | 111 | { ActivateProfile AP(argv[1]); |
111 | if( AP.exec() == QDialog::Accepted ) { | 112 | if( AP.exec() == QDialog::Accepted ) { |
113 | Log(("%s-c%ld-allowed\n", | ||
114 | argv[1], AP.selectedProfile() )); | ||
112 | printf( "%s-c%ld-allowed", argv[1], AP.selectedProfile() ); | 115 | printf( "%s-c%ld-allowed", argv[1], AP.selectedProfile() ); |
113 | } else { | 116 | } else { |
117 | Log(("%s-c%NN-disallowed\n", argv[1] )); | ||
114 | printf( "%s-cNN-disallowed", argv[1] ); | 118 | printf( "%s-cNN-disallowed", argv[1] ); |
115 | } | 119 | } |
116 | } | 120 | } |
117 | break; | 121 | break; |
118 | case ACT_VPN : | 122 | case ACT_VPN : |
119 | { ActivateVPN AVPN; | 123 | { ActivateVPN AVPN; |