propose to save deck before loading a new one; fix #3699 (#3707)

This commit is contained in:
ctrlaltca 2019-05-05 22:38:53 +02:00 committed by GitHub
parent 8f5bfd1f87
commit 0dc4cc7e03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -754,6 +754,9 @@ void TabDeckEditor::actNewDeck()
void TabDeckEditor::actLoadDeck()
{
if (!confirmClose())
return;
QFileDialog dialog(this, tr("Load deck"));
dialog.setDirectory(settingsCache->getDeckPath());
dialog.setNameFilters(DeckLoader::fileNameFilters);