mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix saved unsync list
This commit is contained in:
parent
06aceaf9b1
commit
0c3b7e7f07
@ -698,15 +698,11 @@ void MainWindow::saveSettings()
|
|||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
|
||||||
QStringList docks;
|
QStringList docks;
|
||||||
const QStringList syncable = QStringList()
|
|
||||||
<< HexdumpWidget::getWidgetType()
|
|
||||||
<< DisassemblyWidget::getWidgetType()
|
|
||||||
<< GraphWidget::getWidgetType();
|
|
||||||
QStringList unsync;
|
QStringList unsync;
|
||||||
for (const auto &it : dockWidgets) {
|
for (const auto &it : dockWidgets) {
|
||||||
docks.append(it->objectName());
|
docks.append(it->objectName());
|
||||||
if (syncable.contains(it->metaObject()->className()) &&
|
auto memoryDockWidget = qobject_cast<MemoryDockWidget*>(it);
|
||||||
!qobject_cast<MemoryDockWidget*>(it)->getSeekable()->isSynchronized()) {
|
if (memoryDockWidget && !memoryDockWidget->getSeekable()->isSynchronized()) {
|
||||||
unsync.append(it->objectName());
|
unsync.append(it->objectName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user