Skip to content
Permalink
Browse files

[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).
  • Loading branch information
nyalldawson committed Mar 12, 2018
1 parent 8f9d17e commit 773ec220ba8c81784f69bef2911bc9cf9e788f7a
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/app/qgisapp.cpp
@@ -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 );

0 comments on commit 773ec22

Please sign in to comment.
You can’t perform that action at this time.