show error message when open deck fails in VDS

This commit is contained in:
RickyRister 2025-02-19 00:47:49 -08:00
parent 77a3515470
commit bf4105e16a

View file

@ -6,6 +6,7 @@
#include "../tab_supervisor.h"
#include "pb/command_deck_del.pb.h"
#include <QMessageBox>
#include <QMouseEvent>
TabDeckStorageVisual::TabDeckStorageVisual(TabSupervisor *_tabSupervisor)
@ -26,6 +27,7 @@ void TabDeckStorageVisual::actOpenLocalDeck(const QString &filePath)
{
DeckLoader deckLoader;
if (!deckLoader.loadFromFile(filePath, DeckLoader::getFormatFromName(filePath), true)) {
QMessageBox::critical(this, tr("Error"), tr("Could not open deck at %1").arg(filePath));
return;
}