Don't raise unsynced widgets. (#1609)

This commit is contained in:
karliss 2019-06-19 01:59:24 +03:00 committed by Florian Märkl
parent c96c72a147
commit dba42e7cd8

View File

@ -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;