From 81040e3c9b160323b406185c08ff10e94c815922 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 25 Apr 2011 17:13:34 +0200 Subject: fixes... --- src/fbgui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fbgui.cpp') 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())); -- cgit v1.2.3-55-g7522