Skip to content
Permalink
Browse files

patch #3354 by John Donovan

git-svn-id: http://svn.osgeo.org/qgis/trunk@15401 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty
borysiasty committed Mar 9, 2011
1 parent d010556 commit ff3cc6376956c5dead55f1a9b3b000ad244cfb0c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -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

0 comments on commit ff3cc63

Please sign in to comment.
You can’t perform that action at this time.