mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
cockatrice: ask to save modified decks on close; fix #759
This commit is contained in:
parent
06e5327595
commit
399d4bf516
5 changed files with 26 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue