From 0c3b7e7f07758c91a81e9a05eec73e56eec8c12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Tue, 18 Jun 2019 19:28:20 +0200 Subject: [PATCH] Fix saved unsync list --- src/core/MainWindow.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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()); } }