Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch #3354 by John Donovan
git-svn-id: http://svn.osgeo.org/qgis/trunk@15401 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Mar 9, 2011
1 parent d010556 commit ff3cc63
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 ff3cc63

Please sign in to comment.