Commit 363e1669 authored by Oliver Bock's avatar Oliver Bock

Fixed button state handling

parent 636d8560
......@@ -203,16 +203,9 @@ void PulsatingScience::closeEvent(QCloseEvent *event)
void PulsatingScience::on_pushRun_clicked()
{
if(ui.pushRun->isEnabled()) {
ui.pushRun->setEnabled(false);
ui.pushPause->setEnabled(true);
ui.pushStop->setEnabled(true);
}
else {
ui.pushRun->setEnabled(true);
ui.pushPause->setEnabled(false);
ui.pushStop->setEnabled(false);
}
ui.pushRun->setEnabled(false);
ui.pushPause->setEnabled(true);
ui.pushStop->setEnabled(true);
}
void PulsatingScience::on_pushPause_clicked()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment