aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-20 19:16:36 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-20 19:16:36 +0200
commit9f0be8cd5f90b6b471f7e19c393af14377b1dc0b (patch)
treec5830c73c11e4f7aa101ce8e92aedb3aaa312ff1 /gui
parent34ec70e88bb48e71fbc7eaf3b9c9e1c643ed6adb (diff)
downloadnextpnr-9f0be8cd5f90b6b471f7e19c393af14377b1dc0b.tar.gz
nextpnr-9f0be8cd5f90b6b471f7e19c393af14377b1dc0b.tar.bz2
nextpnr-9f0be8cd5f90b6b471f7e19c393af14377b1dc0b.zip
make new context work again
Diffstat (limited to 'gui')
-rw-r--r--gui/designwidget.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index d28b843b..f7ae82f5 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -230,6 +230,9 @@ void DesignWidget::addToHistory(QTreeWidgetItem *item)
void DesignWidget::newContext(Context *ctx)
{
treeWidget->clear();
+ // reset pointers since they are not valid after clear
+ nets_root = nullptr;
+ cells_root = nullptr;
history_ignore = false;
history_index = -1;
history.clear();