Skip to content
Permalink
Browse files

DisassemblerGraphView: selectedItemChangedEvent null renderer

It's better to not reset the current renderer, cause many function inside DisassemblerActions fails or need a null check on the renderer.
  • Loading branch information...
Krnlsoft committed Oct 11, 2019
1 parent c35fdb8 commit cc40429526fc532a6d2fa4cddf1f0d2312c26e60
Showing with 0 additions and 2 deletions.
  1. +0 −2 widgets/graphview/disassemblergraphview/disassemblergraphview.cpp
@@ -193,8 +193,6 @@ void DisassemblerGraphView::selectedItemChangedEvent()

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

GraphView::selectedItemChangedEvent();
}

0 comments on commit cc40429

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