aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-14 20:19:39 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-14 20:19:39 +0200
commitfcba866b632bff903cc2d8797047075eab623693 (patch)
tree6f821491ce0cf007b3c089c3007a43323c1dc116
parent1b5c1b028e0a44c6171aa2b95809e2b6edb9c13c (diff)
downloadnextpnr-fcba866b632bff903cc2d8797047075eab623693.tar.gz
nextpnr-fcba866b632bff903cc2d8797047075eab623693.tar.bz2
nextpnr-fcba866b632bff903cc2d8797047075eab623693.zip
remove selected on context change
-rw-r--r--gui/fpgaviewwidget.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc
index 1d0e8b57..ad62d38f 100644
--- a/gui/fpgaviewwidget.cc
+++ b/gui/fpgaviewwidget.cc
@@ -272,6 +272,7 @@ FPGAViewWidget::~FPGAViewWidget() {}
void FPGAViewWidget::newContext(Context *ctx)
{
ctx_ = ctx;
+ selectedItems_.clear();
update();
}