Skip to content

Commit

Permalink
Allow selecting "no projection" as default for new projects
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 14, 2019
1 parent f36b78c commit 7bcfb8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgsoptions.cpp
Expand Up @@ -462,8 +462,10 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
leLayerGlobalCrs->setCrs( mLayerDefaultCrs );

const QString defaultProjectCrs = mSettings->value( QStringLiteral( "/projections/defaultProjectCrs" ), GEO_EPSG_CRS_AUTHID, QgsSettings::App ).toString();
leProjectGlobalCrs->setCrs( QgsCoordinateReferenceSystem( defaultProjectCrs ) );
leProjectGlobalCrs->setOptionVisible( QgsProjectionSelectionWidget::DefaultCrs, false );
leProjectGlobalCrs->setOptionVisible( QgsProjectionSelectionWidget::CrsNotSet, true );
leProjectGlobalCrs->setNotSetText( tr( "No projection (or unknown/non-Earth projection)" ) );
leProjectGlobalCrs->setCrs( QgsCoordinateReferenceSystem( defaultProjectCrs ) );
leProjectGlobalCrs->setMessage(
tr( "<h1>Default projection for new projects</h1>"
"Select a projection that should be used for new projects that are created in QGIS."
Expand Down

0 comments on commit 7bcfb8e

Please sign in to comment.