summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Schulthess2017-05-02 11:46:42 +0200
committerChristoph Schulthess2017-05-02 11:46:42 +0200
commit1deb8ef975ab9c2a4a24e2b457420385a535e0e1 (patch)
treea6de7ed1e54b3655478955dac19fd7a0e6556b90
parenttest (diff)
downloadpvs2-1deb8ef975ab9c2a4a24e2b457420385a535e0e1.tar.gz
pvs2-1deb8ef975ab9c2a4a24e2b457420385a535e0e1.tar.xz
pvs2-1deb8ef975ab9c2a4a24e2b457420385a535e0e1.zip
test
-rw-r--r--src/client/toolbar/toolbar.cpp4
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()