Skip to content

Commit 1bf1de8

Browse files
author
timlinux
committed
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
1 parent 96a6672 commit 1bf1de8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/qgisapp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3877,13 +3877,17 @@ void QgisApp::removeLayer()
38773877
currentLayerFile->toggleEditing();
38783878
}
38793879
mMapLegend->legendLayerRemove();
3880+
// notify the project we've made a change
3881+
QgsProject::instance()->dirty(true);
38803882
}
38813883

38823884

38833885
void QgisApp::removeAllLayers()
38843886
{
38853887
QgsMapLayerRegistry::instance()->removeAllMapLayers();
38863888
mMapCanvas->refresh();
3889+
// notify the project we've made a change
3890+
QgsProject::instance()->dirty(true);
38873891
} //remove all layers
38883892

38893893

0 commit comments

Comments
 (0)