Skip to content
Permalink
Browse files
Update modification date even when failing
  • Loading branch information
pblottiere committed Jun 15, 2021
1 parent 0e3c2ea commit 168969054166e6d7fc1c2d2236b90350f7d9bcb3
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -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;
}

@@ -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
{
@@ -7361,6 +7361,7 @@ void QgisApp::fileSaveAs()
QMessageBox::Ok,
Qt::NoButton );
}
mProjectLastModified = fullPath.lastModified();
} // QgisApp::fileSaveAs

void QgisApp::dxfExport()

0 comments on commit 1689690

Please sign in to comment.