aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-09-04 17:14:30 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2020-09-04 17:14:30 +0200
commit717bcfa19eb6d6351c471b657312097ad1261da5 (patch)
tree10c99d2475700e3e98010c8bb50009cfa69a5e2e /gui
parent4512a9de19751916c466ed12a2ba4dce958d77bc (diff)
downloadnextpnr-717bcfa19eb6d6351c471b657312097ad1261da5.tar.gz
nextpnr-717bcfa19eb6d6351c471b657312097ad1261da5.tar.bz2
nextpnr-717bcfa19eb6d6351c471b657312097ad1261da5.zip
Preserve cmd parameters when loading json from GUI
Diffstat (limited to 'gui')
-rw-r--r--gui/ecp5/mainwindow.cc1
-rw-r--r--gui/ice40/mainwindow.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/gui/ecp5/mainwindow.cc b/gui/ecp5/mainwindow.cc
index 5ae1e50f..782cfb65 100644
--- a/gui/ecp5/mainwindow.cc
+++ b/gui/ecp5/mainwindow.cc
@@ -110,6 +110,7 @@ void MainWindow::new_proj()
QString package = QInputDialog::getItem(this, "Select package", "Package:", packages, 0, false, &ok);
if (ok && !item.isEmpty()) {
+ handler->clear();
currentProj = "";
disableActions();
chipArgs.package = package.toStdString().c_str();
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc
index 3c9cab1f..f251fd28 100644
--- a/gui/ice40/mainwindow.cc
+++ b/gui/ice40/mainwindow.cc
@@ -114,6 +114,7 @@ void MainWindow::new_proj()
QString package = QInputDialog::getItem(this, "Select package", "Package:", packages, 0, false, &ok);
if (ok && !item.isEmpty()) {
+ handler->clear();
currentProj = "";
disableActions();
chipArgs.package = package.toStdString().c_str();