Skip to content

Commit ff3cc63

Browse files
author
borysiasty
committedMar 9, 2011
patch #3354 by John Donovan
git-svn-id: http://svn.osgeo.org/qgis/trunk@15401 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d010556 commit ff3cc63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5029,7 +5029,7 @@ bool QgisApp::saveDirty()
50295029
QSettings settings;
50305030
bool askThem = settings.value( "qgis/askToSaveProjectChanges", true ).toBool();
50315031

5032-
if ( askThem && ( QgsProject::instance()->isDirty() || mMapCanvas->isDirty() ) && mMapCanvas->layerCount() > 0 )
5032+
if ( askThem && ( QgsProject::instance()->isDirty() || mMapCanvas->isDirty() ) && QgsMapLayerRegistry::instance()->count() > 0 )
50335033
{
50345034
// flag project as dirty since dirty state of canvas is reset if "dirty"
50355035
// is based on a zoom or pan

0 commit comments

Comments
 (0)
Please sign in to comment.