mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
add error message when fail to open
This commit is contained in:
parent
70ca30e4e5
commit
09dfc50d28
1 changed files with 3 additions and 1 deletions
|
|
@ -966,8 +966,10 @@ void TabDeckEditor::openDeckFromFile(const QString &fileName, DeckOpenLocation d
|
||||||
setSaveStatus(false);
|
setSaveStatus(false);
|
||||||
setDeck(l);
|
setDeck(l);
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
delete l;
|
delete l;
|
||||||
|
QMessageBox::critical(this, tr("Error"), tr("Could not open deck at %1").arg(fileName));
|
||||||
|
}
|
||||||
setSaveStatus(true);
|
setSaveStatus(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue