diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-27 11:12:05 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-27 11:12:05 +0200 |
commit | 9bb489936078980e98fc873845b2ca64ddb490fb (patch) | |
tree | 7c34681985ed8fafc3ce7ce0e8a04f6ddb9109a8 /gui/ice40/mainwindow.cc | |
parent | 09c0d96105c82d9a1c6b2dfb93e3da912ec910d5 (diff) | |
download | nextpnr-9bb489936078980e98fc873845b2ca64ddb490fb.tar.gz nextpnr-9bb489936078980e98fc873845b2ca64ddb490fb.tar.bz2 nextpnr-9bb489936078980e98fc873845b2ca64ddb490fb.zip |
disable new and open while tasks are running
Diffstat (limited to 'gui/ice40/mainwindow.cc')
-rw-r--r-- | gui/ice40/mainwindow.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc index 32074adc..2563a767 100644 --- a/gui/ice40/mainwindow.cc +++ b/gui/ice40/mainwindow.cc @@ -260,6 +260,9 @@ void MainWindow::disableActions() actionPlay->setEnabled(false);
actionPause->setEnabled(false);
actionStop->setEnabled(false);
+
+ actionNew->setEnabled(true);
+ actionOpen->setEnabled(true);
}
void MainWindow::loadfile_finished(bool status)
@@ -349,6 +352,9 @@ void MainWindow::taskStarted() disableActions();
actionPause->setEnabled(true);
actionStop->setEnabled(true);
+
+ actionNew->setEnabled(false);
+ actionOpen->setEnabled(false);
}
void MainWindow::taskPaused()
@@ -356,6 +362,9 @@ void MainWindow::taskPaused() disableActions();
actionPlay->setEnabled(true);
actionStop->setEnabled(true);
+
+ actionNew->setEnabled(false);
+ actionOpen->setEnabled(false);
}
void MainWindow::budget()
|