Skip to content

Commit

Permalink
Update modification date even when failing
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jun 15, 2021
1 parent 0e3c2ea commit 1689690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -7289,6 +7289,7 @@ bool QgisApp::fileSave()
QMessageBox::critical( this,
tr( "Unable to save project %1" ).arg( QDir::toNativeSeparators( QgsProject::instance()->fileName() ) ),
QgsProject::instance()->error() );
mProjectLastModified = QgsProject::instance()->lastModified();
return false;
}

Expand Down Expand Up @@ -7351,7 +7352,6 @@ void QgisApp::fileSaveAs()
mStatusBar->showMessage( tr( "Saved project to: %1" ).arg( QDir::toNativeSeparators( QgsProject::instance()->fileName() ) ), 5000 );
// add this to the list of recently used project files
saveRecentProjectPath();
mProjectLastModified = fullPath.lastModified();
}
else
{
Expand All @@ -7361,6 +7361,7 @@ void QgisApp::fileSaveAs()
QMessageBox::Ok,
Qt::NoButton );
}
mProjectLastModified = fullPath.lastModified();
} // QgisApp::fileSaveAs

void QgisApp::dxfExport()
Expand Down

0 comments on commit 1689690

Please sign in to comment.