From 1deb8ef975ab9c2a4a24e2b457420385a535e0e1 Mon Sep 17 00:00:00 2001 From: Christoph Schulthess Date: Tue, 2 May 2017 11:46:42 +0200 Subject: test --- src/client/toolbar/toolbar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3-55-g7522