diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-09-04 17:14:30 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-09-04 17:14:30 +0200 |
commit | 717bcfa19eb6d6351c471b657312097ad1261da5 (patch) | |
tree | 10c99d2475700e3e98010c8bb50009cfa69a5e2e /gui | |
parent | 4512a9de19751916c466ed12a2ba4dce958d77bc (diff) | |
download | nextpnr-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.cc | 1 | ||||
-rw-r--r-- | gui/ice40/mainwindow.cc | 1 |
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();
|