From 886e95be1dc42dd6dbac8dabb677f25e506d56d6 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Tue, 4 Feb 2025 21:38:38 -0800 Subject: [PATCH] add migration --- cockatrice/src/settings/shortcuts_settings.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cockatrice/src/settings/shortcuts_settings.cpp b/cockatrice/src/settings/shortcuts_settings.cpp index 778b5e0c2..d1b54b9a7 100644 --- a/cockatrice/src/settings/shortcuts_settings.cpp +++ b/cockatrice/src/settings/shortcuts_settings.cpp @@ -82,6 +82,14 @@ void ShortcutsSettings::migrateShortcuts() shortCutsFile.remove("tab_game/aFocusChat"); } + // PR #5564 changes "MainWindow/aDeckEditor" to "Tabs/aTabDeckEditor" + if (shortCutsFile.contains("MainWindow/aDeckEditor")) { + qCDebug(ShortcutsSettingsLog) << "MainWindow/aDeckEditor shortcut found. Migrating to Tabs/aTabDeckEditor."; + QString keySequence = shortCutsFile.value("MainWindow/aDeckEditor", "").toString(); + this->setShortcuts("Tabs/aTabDeckEditor", keySequence); + shortCutsFile.remove("MainWindow/aDeckEditor"); + } + shortCutsFile.endGroup(); } }