Skip to content

Commit

Permalink
Update mainwindow.cpp
Browse files Browse the repository at this point in the history
Don't run auto save related stuff during shutdown.
  • Loading branch information
rodlie committed Aug 14, 2024
1 parent da61a70 commit 0bec97c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,8 @@ void MainWindow::setResolutionText(QString text)

void MainWindow::checkAutoSaveTimer()
{
qDebug() << "check auto save timer" << mAutoSave << mAutoSaveTimeout;
if (mShutdown) { return; }

if (mAutoSave &&
mChangedSinceSaving &&
!mDocument.fEvFile.isEmpty())
Expand Down Expand Up @@ -2003,6 +2004,8 @@ void MainWindow::revert()

void MainWindow::updateAutoSaveBackupState()
{
if (mShutdown) { return; }

mBackupOnSave = AppSupport::getSettings("files",
"BackupOnSave",
false).toBool();
Expand Down

0 comments on commit 0bec97c

Please sign in to comment.