From dbcb6487fe2b82bc1defbad600538f928c646e11 Mon Sep 17 00:00:00 2001 From: Christoph Schulthess Date: Wed, 22 Mar 2017 17:23:44 +0100 Subject: Testing --- src/client/toolbar/toolbar.cpp | 7 +++---- src/client/toolbar/toolbar.h | 1 + 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); -- cgit v1.2.3-55-g7522