aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-21 12:22:41 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-21 12:22:41 +0200
commit09a68affa388ffafdf361ccd3de621173f2b8b48 (patch)
tree4fe8ce1cfa4c0cac7f917bd8319c7de8c527c523 /gui
parentfe239366b5ac52374198a061d96b2224ca689412 (diff)
downloadnextpnr-09a68affa388ffafdf361ccd3de621173f2b8b48.tar.gz
nextpnr-09a68affa388ffafdf361ccd3de621173f2b8b48.tar.bz2
nextpnr-09a68affa388ffafdf361ccd3de621173f2b8b48.zip
Fix warnings and status
Diffstat (limited to 'gui')
-rw-r--r--gui/ice40/mainwindow.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc
index 017ca2fa..847698c5 100644
--- a/gui/ice40/mainwindow.cc
+++ b/gui/ice40/mainwindow.cc
@@ -222,11 +222,11 @@ void MainWindow::new_proj()
QString package = QInputDialog::getItem(this, "Select package", "Package:", getSupportedPackages(chipArgs.type),
0, false, &ok);
- if (ok && !item.isEmpty()) {
- disableActions();
+ if (ok && !item.isEmpty()) {
currentProj = "";
currentJson = "";
currentPCF = "";
+ disableActions();
chipArgs.package = package.toStdString().c_str();
ctx = std::unique_ptr<Context>(new Context(chipArgs));
actionLoadJSON->setEnabled(true);