diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/toolbar/toolbar.cpp | 7 |
1 files 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() |