mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
update CRS icon in the statusbar when project is cleared and default CRS
is set to "no projection" (fix #53768)
This commit is contained in:
parent
eaf2a88aa2
commit
9423abac6b
@ -4373,6 +4373,9 @@ void QgisApp::setupConnections()
|
|||||||
|
|
||||||
// project crs connections
|
// project crs connections
|
||||||
connect( QgsProject::instance(), &QgsProject::crsChanged, this, &QgisApp::projectCrsChanged );
|
connect( QgsProject::instance(), &QgsProject::crsChanged, this, &QgisApp::projectCrsChanged );
|
||||||
|
// When default project CRS is set to "no projection" and new project is created we need to update
|
||||||
|
// mOnTheFlyProjectionStatusButton with the correct icon, see https://github.com/qgis/QGIS/issues/53768
|
||||||
|
connect( QgsProject::instance(), &QgsProject::cleared, this, &QgisApp::updateCrsStatusBar );
|
||||||
|
|
||||||
connect( QgsProject::instance()->viewSettings(), &QgsProjectViewSettings::mapScalesChanged, this, [=] { mScaleWidget->updateScales(); } );
|
connect( QgsProject::instance()->viewSettings(), &QgsProjectViewSettings::mapScalesChanged, this, [=] { mScaleWidget->updateScales(); } );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user