aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system/libkvisystem.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2011-12-21 13:31:30 +0000
committerGravatar Alexey Sokolov2011-12-21 13:31:30 +0000
commit252ba9708ec9cad0c0e4d0a62f073345672469e4 (patch)
tree180e89043493b538ec1943338e31f0ce8b2641c5 /src/modules/system/libkvisystem.cpp
parentFix a memory leak (diff)
downloadKVIrc-252ba9708ec9cad0c0e4d0a62f073345672469e4.tar.gz
KVIrc-252ba9708ec9cad0c0e4d0a62f073345672469e4.tar.bz2
KVIrc-252ba9708ec9cad0c0e4d0a62f073345672469e4.zip
Fix compilation when KDE is disabled.
Thanks to Vampi for reporting this. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6002 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/system/libkvisystem.cpp')
-rw-r--r--src/modules/system/libkvisystem.cpp2
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;