diff --git a/cockatrice/src/client/tabs/tab_deck_storage.cpp b/cockatrice/src/client/tabs/tab_deck_storage.cpp index 9e9cbc23c..7b2253b5f 100644 --- a/cockatrice/src/client/tabs/tab_deck_storage.cpp +++ b/cockatrice/src/client/tabs/tab_deck_storage.cpp @@ -162,12 +162,12 @@ void TabDeckStorage::actOpenLocalDeck() return; QString filePath = localDirModel->filePath(curLeft); - SettingsCache::instance().recents().updateRecentlyOpenedDeckPaths(filePath); - DeckLoader deckLoader; if (!deckLoader.loadFromFile(filePath, DeckLoader::CockatriceFormat)) return; + SettingsCache::instance().recents().updateRecentlyOpenedDeckPaths(filePath); + emit openDeckEditor(&deckLoader); } }