[QGIS Commit] r8899 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Jul 25 07:56:33 EDT 2008
Author: timlinux
Date: 2008-07-25 07:56:33 -0400 (Fri, 25 Jul 2008)
New Revision: 8899
Modified:
trunk/qgis/src/app/qgisapp.cpp
Log:
One more thing for ticket #1182 - Mark project as dirty when removing layers.
Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp 2008-07-25 11:49:00 UTC (rev 8898)
+++ trunk/qgis/src/app/qgisapp.cpp 2008-07-25 11:56:33 UTC (rev 8899)
@@ -3877,6 +3877,8 @@
currentLayerFile->toggleEditing();
}
mMapLegend->legendLayerRemove();
+ // notify the project we've made a change
+ QgsProject::instance()->dirty(true);
}
@@ -3884,6 +3886,8 @@
{
QgsMapLayerRegistry::instance()->removeAllMapLayers();
mMapCanvas->refresh();
+ // notify the project we've made a change
+ QgsProject::instance()->dirty(true);
} //remove all layers
More information about the QGIS-commit
mailing list