Skip to content
Permalink
Browse files

Merge pull request #32 from Krnlsoft/noplugin

bugFix: GraphView, null renderer cause various crash
  • Loading branch information...
Dax89 committed Oct 12, 2019
2 parents 8848416 + cc40429 commit 2bb510722b0936953f80bd41d2d20a08be81a20d
@@ -193,8 +193,6 @@ void DisassemblerGraphView::selectedItemChangedEvent()

if(selecteditem)
m_disassembleractions->setCurrentRenderer(static_cast<DisassemblerBlockItem*>(selecteditem)->renderer());
else
m_disassembleractions->setCurrentRenderer(nullptr);

GraphView::selectedItemChangedEvent();
}
@@ -45,8 +45,11 @@ void GraphView::setSelectedBlock(GraphViewItem *item)
if(gvi != item)
continue;

bool changed = (m_selecteditem != item);
m_selecteditem = item;
this->focusSelectedBlock();
if (changed)
this->selectedItemChangedEvent();
break;
}
}

0 comments on commit 2bb5107

Please sign in to comment.
You can’t perform that action at this time.