Skip to content
Permalink
Browse files
One more thing for ticket #1182 - Mark project as dirty when removing…
… layers.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8899 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 25, 2008
1 parent 02fad2b commit 20b132424a2ce9065eedc17e85e22906345dbb8a
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgisapp.cpp
@@ -3877,13 +3877,17 @@ void QgisApp::removeLayer()
currentLayerFile->toggleEditing();
}
mMapLegend->legendLayerRemove();
// notify the project we've made a change
QgsProject::instance()->dirty(true);
}


void QgisApp::removeAllLayers()
{
QgsMapLayerRegistry::instance()->removeAllMapLayers();
mMapCanvas->refresh();
// notify the project we've made a change
QgsProject::instance()->dirty(true);
} //remove all layers


0 comments on commit 20b1324

Please sign in to comment.