diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index b6feda15..f68a922a 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -161,7 +161,9 @@ void DisassemblerGraphView::loadCurrentGraph() bool emptyGraph = functions.isEmpty(); if (emptyGraph) { // If there's no function to print, just move to disassembly and add a message - Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Disassembly); + if (Core()->getMemoryWidgetPriority() == CutterCore::MemoryWidgetType::Graph) { + Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Disassembly); + } if (!emptyText) { QVBoxLayout *layout = new QVBoxLayout(this); emptyText = new QLabel(this);