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
This commit is contained in:
timlinux 2008-07-25 11:56:33 +00:00
parent 96a6672712
commit 1bf1de8e88

View File

@ -3877,6 +3877,8 @@ void QgisApp::removeLayer()
currentLayerFile->toggleEditing();
}
mMapLegend->legendLayerRemove();
// notify the project we've made a change
QgsProject::instance()->dirty(true);
}
@ -3884,6 +3886,8 @@ void QgisApp::removeAllLayers()
{
QgsMapLayerRegistry::instance()->removeAllMapLayers();
mMapCanvas->refresh();
// notify the project we've made a change
QgsProject::instance()->dirty(true);
} //remove all layers