Skip to content

Commit

Permalink
One more thing for ticket #1182 - Mark project as dirty when removing…
Browse files Browse the repository at this point in the history
… 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 1bf1de8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -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


Expand Down

0 comments on commit 1bf1de8

Please sign in to comment.