diff options
Diffstat (limited to 'src/modules/system/libkvisystem.cpp')
| -rw-r--r-- | src/modules/system/libkvisystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp index c174f5158..dac0fda04 100644 --- a/src/modules/system/libkvisystem.cpp +++ b/src/modules/system/libkvisystem.cpp @@ -753,6 +753,7 @@ static bool system_kvs_cmd_runcmd(KviKvsModuleCommandCall *c) QString szTerminal; QStringList args; + QProcess oProc; #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) // Only »cmd.exe /k« in the list. args << "/k" << szCommand; @@ -762,7 +763,6 @@ static bool system_kvs_cmd_runcmd(KviKvsModuleCommandCall *c) if(c->switches()->getAsStringIfExisting('t',"terminal",szTerminal)) { - QProcess oProc; if(!oProc.startDetached(szTerminal,args)) return c->error(__tr2qs("Failed to start the terminal program")); return true; |
