added error message when deck can't be saved
This commit is contained in:
parent
a77dc1ff8c
commit
4f9252c65c
1 changed files with 4 additions and 2 deletions
|
@ -308,8 +308,9 @@ bool WndDeckEditor::actSaveDeck()
|
||||||
else if (deckModel->getDeckList()->saveToFile(lastFileName, lastFileFormat)) {
|
else if (deckModel->getDeckList()->saveToFile(lastFileName, lastFileFormat)) {
|
||||||
setWindowModified(false);
|
setWindowModified(false);
|
||||||
return true;
|
return true;
|
||||||
} else
|
}
|
||||||
return false;
|
QMessageBox::critical(this, tr("Error"), tr("The deck could not be saved.\nPlease check that the directory is writable and try again."));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WndDeckEditor::actSaveDeckAs()
|
bool WndDeckEditor::actSaveDeckAs()
|
||||||
|
@ -332,6 +333,7 @@ bool WndDeckEditor::actSaveDeckAs()
|
||||||
setWindowModified(false);
|
setWindowModified(false);
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue