diff --git a/cockatrice/src/client/tabs/tab_deck_editor.cpp b/cockatrice/src/client/tabs/tab_deck_editor.cpp index f7986cf88..7ea9cbdba 100644 --- a/cockatrice/src/client/tabs/tab_deck_editor.cpp +++ b/cockatrice/src/client/tabs/tab_deck_editor.cpp @@ -966,8 +966,10 @@ void TabDeckEditor::openDeckFromFile(const QString &fileName, DeckOpenLocation d setSaveStatus(false); setDeck(l); } - } else + } else { delete l; + QMessageBox::critical(this, tr("Error"), tr("Could not open deck at %1").arg(fileName)); + } setSaveStatus(true); }