add error message when fail to open

This commit is contained in:
RickyRister 2024-12-24 14:18:21 -08:00
parent 70ca30e4e5
commit 09dfc50d28

View file

@ -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);
}