mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
96a6672712
commit
1bf1de8e88
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user