We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec5a3b4 commit bb8854fCopy full SHA for bb8854f
src/app/qgisapp.cpp
@@ -11146,14 +11146,12 @@ bool QgisApp::saveDirty()
11146
QgsSettings settings;
11147
bool askThem = settings.value( QStringLiteral( "qgis/askToSaveProjectChanges" ), true ).toBool();
11148
11149
- if ( askThem && QgsProject::instance()->isDirty() && QgsProject::instance()->count() > 0 )
+ if ( askThem && QgsProject::instance()->isDirty() )
11150
{
11151
// flag project as dirty since dirty state of canvas is reset if "dirty"
11152
// is based on a zoom or pan
11153
markDirty();
11154
11155
- // old code: mProjectIsDirtyFlag = true;
11156
-
11157
// prompt user to save
11158
answer = QMessageBox::question( this, tr( "Save Project" ),
11159
tr( "Do you want to save the current project? %1" )
0 commit comments