summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-04-25 17:13:34 +0200
committerJonathan Bauer2011-04-25 17:13:34 +0200
commit81040e3c9b160323b406185c08ff10e94c815922 (patch)
tree2cb3c03a2e843dbbe18810a73bb80340fe67b00d /src/fbgui.cpp
parent1sec delay between loading page showing & preparing kexec (diff)
downloadfbgui-81040e3c9b160323b406185c08ff10e94c815922.tar.gz
fbgui-81040e3c9b160323b406185c08ff10e94c815922.tar.xz
fbgui-81040e3c9b160323b406185c08ff10e94c815922.zip
fixes...
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r--src/fbgui.cpp6
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()));