diff options
author | Jonathan Bauer | 2011-04-25 17:13:34 +0200 |
---|---|---|
committer | Jonathan Bauer | 2011-04-25 17:13:34 +0200 |
commit | 81040e3c9b160323b406185c08ff10e94c815922 (patch) | |
tree | 2cb3c03a2e843dbbe18810a73bb80340fe67b00d /src/fbgui.cpp | |
parent | 1sec delay between loading page showing & preparing kexec (diff) | |
download | fbgui-81040e3c9b160323b406185c08ff10e94c815922.tar.gz fbgui-81040e3c9b160323b406185c08ff10e94c815922.tar.xz fbgui-81040e3c9b160323b406185c08ff10e94c815922.zip |
fixes...
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r-- | src/fbgui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 45524eb..1039ad6 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -434,9 +434,9 @@ void fbgui::prepareKexec() { * */ void fbgui::runKexec() { - QProcess process; - process.startDetached("kexec -e"); - if (!process.waitForStarted()) { + QProcess *process = new QProcess(this); + process->start("kexec -e"); + if (!process->waitForStarted()) { qxtLog->debug() << "[gui] Failed to execute: kexec -e"; qxtLog->debug() << "[gui] Exiting in 5 seconds..."; QTimer::singleShot(5000, this, SLOT(close())); |