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@8899 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 25, 2008
1 parent 96a6672 commit 1bf1de8e884d4e4977b88a54ca9043539c2321bc
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 1bf1de8

Please sign in to comment.