From cb7574be0364ff02a786d9e7584640b07d9d6b76 Mon Sep 17 00:00:00 2001 From: Christoph Schulthess Date: Mon, 24 Apr 2017 16:30:19 +0200 Subject: test --- src/client/toolbar/toolbar.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index 8cb37aa..823fae6 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -499,18 +499,19 @@ void Toolbar::onBtnCustom() { const bool on = _ui->btnCustom->isChecked(); if (on) { + this->runDbg.startDetached("/bin/sh", QStringList() << "/opt/openslx/remotedebug/startdebug_noxterm.sh"); _ui->btnCustom->setStyleSheet("background-color: red; color: white; font: bold"); _ui->btnCustom->setText("Debug mode: ON"); - this->runDbg.startDetached("/bin/sh", QStringList() << "/opt/openslx/remotedebug/startdebug_noxterm.sh"); } else { this->runDbg.close(); + _ui->btnCustom->setStyleSheet("background-color: grey; color: black; font: bold"); + _ui->btnCustom->setText("Debug mode: OFF"); } qDebug() << "state: " << this->runDbg.state(); qDebug() << "error: " << this->runDbg.errorString(); this->runDbg.waitForFinished(); - _ui->btnCustom->setStyleSheet("background-color: grey; color: black; font: bold"); - _ui->btnCustom->setText("Debug mode: OFF"); + } void Toolbar::onBtnLockDesktop() -- cgit v1.2.3-55-g7522