[needs-docs] Don't mark a project as dirty when only the canvas extent

changes

Since this is a view operation, not an edit operation, we don't
mark it as changing the project state. (Much like how loading a
doc in a word processor and scrolling to the last page isn't
changing the document state).
This commit is contained in:
Nyall Dawson 2018-03-09 12:12:30 +10:00
parent 8f9d17e1d0
commit 773ec220ba

View File

@ -3186,7 +3186,6 @@ void QgisApp::setupConnections()
connect( mMapCanvas, &QgsMapCanvas::scaleChanged, this, &QgisApp::updateMouseCoordinatePrecision );
connect( mMapCanvas, &QgsMapCanvas::mapToolSet, this, &QgisApp::mapToolChanged );
connect( mMapCanvas, &QgsMapCanvas::selectionChanged, this, &QgisApp::selectionChanged );
connect( mMapCanvas, &QgsMapCanvas::extentsChanged, this, &QgisApp::markDirty );
connect( mMapCanvas, &QgsMapCanvas::layersChanged, this, &QgisApp::markDirty );
connect( mMapCanvas, &QgsMapCanvas::zoomLastStatusChanged, mActionZoomLast, &QAction::setEnabled );