Skip to content

Commit

Permalink
fix(mainwindow): change default of close changed confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan committed Dec 14, 2019
1 parent 22af606 commit 9a3662f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ bool MainWindow::closeChangedConfirm() {
auto res = QMessageBox::warning(this, "Exit?",
"The file has been modified.\nDo you want to save your changes?",
QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel,
QMessageBox::Save);
QMessageBox::Cancel);
if (res == QMessageBox::Save)
confirmed = saveFile(true, "Save");
else if (res == QMessageBox::Discard)
Expand Down

0 comments on commit 9a3662f

Please sign in to comment.