summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/toolbar/toolbar.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp
index 358fc8c..3dad2aa 100644
--- a/src/client/toolbar/toolbar.cpp
+++ b/src/client/toolbar/toolbar.cpp
@@ -499,19 +499,16 @@ void Toolbar::onBtnCustom()
{
const bool on = _ui->btnCustom->isChecked();
if (on) {
- _ui->btnCustom->setStyleSheet("background-color: red; color: white");
+ _ui->btnCustom->setStyleSheet("background-color: red; color: white; font: bold");
_ui->btnCustom->setText("Debug mode: ON");
- //change style
- //run startdebug.sh
+ this->runDbg.start("bin/sh", QStringList() << "/opt/openslx/remotedebug/startdebug_notxterm.sh");
} else {
- _ui->btnCustom->setStyleSheet("background-color: grey; color: black");
- _ui->btnCustom->setText("Debug mode: OFF");
- //change style back
- //kill startdebug.sh
+ this->runDbg.close();
}
- //this->runDbg.start("xterm", QStringList() << "-hold" << "-e" << "/opt/openslx/remotedebug/startdebug.sh");
- qDebug() << this->runDbg.state();
+ this->runDbg.waitForFinished();
+ _ui->btnCustom->setStyleSheet("background-color: grey; color: black; font: bold");
+ _ui->btnCustom->setText("Debug mode: OFF");
}
void Toolbar::onBtnLockDesktop()