summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/toolbar/toolbar.cpp7
-rw-r--r--src/client/toolbar/toolbar.h1
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp
index 531fcb2..7eb002f 100644
--- a/src/client/toolbar/toolbar.cpp
+++ b/src/client/toolbar/toolbar.cpp
@@ -497,11 +497,10 @@ void Toolbar::onBtnManager()
void Toolbar::onBtnCustom()
{
- QProcess runDbg;
//const bool on = _ui->btnCustom->isChecked();
- runDbg.start("/bin/sh", QStringList() << "/opt/openslx/remotedebug/startdebug.sh");
- qDebug() << runDbg.exitCode();
- qDebug.waitForFinished();
+ this->runDbg.start("/bin/sh", QStringList() << "/opt/openslx/remotedebug/startdebug.sh");
+
+ qDebug() << this->runDbg.state();
}
void Toolbar::onBtnLockDesktop()
diff --git a/src/client/toolbar/toolbar.h b/src/client/toolbar/toolbar.h
index 03c67eb..886a590 100644
--- a/src/client/toolbar/toolbar.h
+++ b/src/client/toolbar/toolbar.h
@@ -60,6 +60,7 @@ private:
void initMenu();
QProcess lockDesktopP;
+ QProcess runDbg;
private slots:
void onVncServerIsRunning(int port);