Fix unwanted jumping from Hexdump to Disassembly

This commit is contained in:
Florian Märkl 2018-07-07 11:47:09 +02:00
parent ecb5fc75cf
commit 6f19e8c225

View File

@ -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
if (Core()->getMemoryWidgetPriority() == CutterCore::MemoryWidgetType::Graph) {
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Disassembly);
}
if (!emptyText) {
QVBoxLayout *layout = new QVBoxLayout(this);
emptyText = new QLabel(this);