diff options
Diffstat (limited to 'src/client/toolbar/toolbar.cpp')
-rw-r--r-- | src/client/toolbar/toolbar.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index 823fae6..3665607 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -503,15 +503,12 @@ void Toolbar::onBtnCustom() _ui->btnCustom->setStyleSheet("background-color: red; color: white; font: bold"); _ui->btnCustom->setText("Debug mode: ON"); } else { - this->runDbg.close(); + this->runDbg.terminate(); _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(); - } void Toolbar::onBtnLockDesktop() |