diff options
author | Christoph Schulthess | 2017-04-24 16:30:19 +0200 |
---|---|---|
committer | Christoph Schulthess | 2017-04-24 16:30:19 +0200 |
commit | cb7574be0364ff02a786d9e7584640b07d9d6b76 (patch) | |
tree | b11a3be552ebb3da8a50df4ec9fba17801378462 /src | |
parent | test (diff) | |
download | pvs2-cb7574be0364ff02a786d9e7584640b07d9d6b76.tar.gz pvs2-cb7574be0364ff02a786d9e7584640b07d9d6b76.tar.xz pvs2-cb7574be0364ff02a786d9e7584640b07d9d6b76.zip |
test
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() |