cockatrice: ask to save modified decks on close; fix #759

This commit is contained in:
Fabio Bas 2015-02-21 15:19:25 +01:00
parent 06e5327595
commit 399d4bf516
5 changed files with 26 additions and 6 deletions

View file

@ -379,6 +379,7 @@ void TabDeckEditor::updateHash()
bool TabDeckEditor::confirmClose()
{
if (modified) {
tabSupervisor->setCurrentWidget(this);
QMessageBox::StandardButton ret = QMessageBox::warning(this, tr("Are you sure?"),
tr("The decklist has been modified.\nDo you want to save the changes?"),
QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);