diff options
Diffstat (limited to 'src/client/toolbar/toolbar.cpp')
-rw-r--r-- | src/client/toolbar/toolbar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index 65ba3e8..b58fd4f 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -512,12 +512,14 @@ void Toolbar::onBtnCustom() void Toolbar::onDbgFinished() { + QProcess cleanup; if (_ui->btnCustom->isChecked()) { _ui->btnCustom->setChecked(false); } _ui->btnCustom->setStyleSheet("background-color: grey; color: black; font: bold"); _ui->btnCustom->setText("Debug mode: OFF"); - this->runDbg.start("/bin/sh", QStringList("/opt/openslx/remotedebug/cleanup.sh")); + cleanup.start("/bin/sh", QStringList("/opt/openslx/remotedebug/cleanup.sh")); + cleanup.waitForFinished(); } void Toolbar::onDbgStarted() |