Skip to content

Commit 82604c2

Browse files
author
borysiasty
committed
patch #3354 by John Donovan
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15401 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent dbe9eec commit 82604c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgisapp.cpp

+1-1
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)