diff --git a/src/core/MainWindow.cpp b/src/core/MainWindow.cpp index 92eb4e24..62a35b66 100644 --- a/src/core/MainWindow.cpp +++ b/src/core/MainWindow.cpp @@ -698,15 +698,11 @@ void MainWindow::saveSettings() QSettings settings; QStringList docks; - const QStringList syncable = QStringList() - << HexdumpWidget::getWidgetType() - << DisassemblyWidget::getWidgetType() - << GraphWidget::getWidgetType(); QStringList unsync; for (const auto &it : dockWidgets) { docks.append(it->objectName()); - if (syncable.contains(it->metaObject()->className()) && - !qobject_cast(it)->getSeekable()->isSynchronized()) { + auto memoryDockWidget = qobject_cast(it); + if (memoryDockWidget && !memoryDockWidget->getSeekable()->isSynchronized()) { unsync.append(it->objectName()); } }