Skip to content

Commit

Permalink
Fix reload modified project asks to recover auto-saved file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jun 30, 2016
1 parent c580399 commit e208b17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1964,8 +1964,11 @@ bool MainWindow::continueModified()
dialog.setDefaultButton(QMessageBox::Yes);
dialog.setEscapeButton(QMessageBox::Cancel);
int r = dialog.exec();
if (r == QMessageBox::Yes) {
return on_actionSave_triggered();
if (r == QMessageBox::Yes || r == QMessageBox::No) {
QMutexLocker locker(&m_autosaveMutex);
m_autosaveFile.reset();
if (r == QMessageBox::Yes)
return on_actionSave_triggered();
} else if (r == QMessageBox::Cancel) {
return false;
}
Expand Down

0 comments on commit e208b17

Please sign in to comment.