diff options
author | gatecat <gatecat@ds0.me> | 2021-06-08 13:08:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 13:08:49 +0100 |
commit | 5e18bb173575557eac49e77b9010c90f1a8ca62c (patch) | |
tree | 7bdd54bdd72a3bab18dc9a8c668763badb70f99d /gui/basewindow.cc | |
parent | 8fa3088057633a431c342fb03d650ca06a92fb35 (diff) | |
parent | 875004d300eb4b85e13c026378e39b31b6922f93 (diff) | |
download | nextpnr-5e18bb173575557eac49e77b9010c90f1a8ca62c.tar.gz nextpnr-5e18bb173575557eac49e77b9010c90f1a8ca62c.tar.bz2 nextpnr-5e18bb173575557eac49e77b9010c90f1a8ca62c.zip |
Merge pull request #723 from YosysHQ/gatecat/fix-722
gui: Don't destroy context when loading JSON
Diffstat (limited to 'gui/basewindow.cc')
-rw-r--r-- | gui/basewindow.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/basewindow.cc b/gui/basewindow.cc index 08cbafe4..50eb2e52 100644 --- a/gui/basewindow.cc +++ b/gui/basewindow.cc @@ -30,6 +30,7 @@ #include <fstream>
#include "designwidget.h"
#include "fpgaviewwidget.h"
+#include "json_frontend.h"
#include "jsonwrite.h"
#include "log.h"
#include "mainwindow.h"
@@ -364,8 +365,7 @@ void BaseMainWindow::open_json() QString fileName = QFileDialog::getOpenFileName(this, QString("Open JSON"), QString(), QString("*.json"));
if (!fileName.isEmpty()) {
disableActions();
- ctx = handler->load_json(fileName.toStdString());
- Q_EMIT contextChanged(ctx.get());
+ handler->load_json(ctx.get(), fileName.toStdString());
Q_EMIT updateTreeView();
log("Loading design successful.\n");
updateActions();
|