From dba42e7cd88b318527fb638dda6d8210840409db Mon Sep 17 00:00:00 2001 From: karliss Date: Wed, 19 Jun 2019 01:59:24 +0300 Subject: [PATCH] Don't raise unsynced widgets. (#1609) --- src/widgets/MemoryDockWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/MemoryDockWidget.cpp b/src/widgets/MemoryDockWidget.cpp index 3f4033d4..15da22fd 100644 --- a/src/widgets/MemoryDockWidget.cpp +++ b/src/widgets/MemoryDockWidget.cpp @@ -13,6 +13,9 @@ MemoryDockWidget::MemoryDockWidget(CutterCore::MemoryWidgetType type, MainWindow void MemoryDockWidget::handleRaiseMemoryWidget(CutterCore::MemoryWidgetType raiseType) { + if (!seekable->isSynchronized()) { + return; + } bool raisingEmptyGraph = (raiseType == CutterCore::MemoryWidgetType::Graph && Core()->isGraphEmpty()); if (raisingEmptyGraph) { raiseType = CutterCore::MemoryWidgetType::Disassembly;