Skip to content

Commit

Permalink
patch #3354 by John Donovan
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15401 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Mar 9, 2011
1 parent dbe9eec commit 82604c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -5029,7 +5029,7 @@ bool QgisApp::saveDirty()
QSettings settings;
bool askThem = settings.value( "qgis/askToSaveProjectChanges", true ).toBool();

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

0 comments on commit 82604c2

Please sign in to comment.