Commit 4f9252c6 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

added error message when deck can't be saved

parent a77dc1ff
......@@ -308,7 +308,8 @@ bool WndDeckEditor::actSaveDeck()
else if (deckModel->getDeckList()->saveToFile(lastFileName, lastFileFormat)) {
setWindowModified(false);
return true;
} else
}
QMessageBox::critical(this, tr("Error"), tr("The deck could not be saved.\nPlease check that the directory is writable and try again."));
return false;
}
......@@ -332,6 +333,7 @@ bool WndDeckEditor::actSaveDeckAs()
setWindowModified(false);
return true;
}
QMessageBox::critical(this, tr("Error"), tr("The deck could not be saved.\nPlease check that the directory is writable and try again."));
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment