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/qgis@8899 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 25, 2008
1 parent 02fad2b commit 20b1324
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
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 20b1324

Please sign in to comment.