Proper highlight/selected cleanup on context re-init
This commit is contained in:
parent
eeb6203c9d
commit
7fd45c0cdf
@ -229,6 +229,7 @@ void DesignWidget::addToHistory(QTreeWidgetItem *item)
|
||||
|
||||
void DesignWidget::newContext(Context *ctx)
|
||||
{
|
||||
highlightSelected.clear();
|
||||
treeWidget->clear();
|
||||
// reset pointers since they are not valid after clear
|
||||
nets_root = nullptr;
|
||||
|
@ -289,6 +289,9 @@ FPGAViewWidget::~FPGAViewWidget() {}
|
||||
void FPGAViewWidget::newContext(Context *ctx)
|
||||
{
|
||||
ctx_ = ctx;
|
||||
onSelectedArchItem(std::vector<DecalXY>());
|
||||
for (int i = 0; i < 8; i++)
|
||||
onHighlightGroupChanged(std::vector<DecalXY>(), i);
|
||||
pokeRenderer();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user