<div dir="ltr"><div><div>Hi all,<br><br></div>I've tracked down the bug reported at <a href="https://hub.qgis.org/issues/11889" target="_blank">https://hub.qgis.org/issues/11889</a>, tested against commit fe27b63.<br><br></div>When creating new layer, QgsCoordinateReferenceSystem instance is created and initialized from QSettings option "/Projections/layerDefaultCrs" with default value for fallback.  The problem is, that value is set in /src/app/qgsoptions.cpp:1198 always from 
LayerDefaultCombo - labeled as "Use a default CRS". You can verify
 easily - select some CRS in that combo, select "Use project CRS" radio 
button, set different CRS for project, and create new shapefile layer - it will use value from disabled 
"Use a default CRS" combo.<br><div><br>I believe setting /Projections/layerDefaultCrs should be handled in the 
block of code before - between lines 1185 and 1196 - from correct combo according to selected radio. I
 will be able to make a PR on GitHub, but I am not sure what value to 
set when prompt option is chosen - maybe
GEO_EPSG_CRS_AUTHID or project CRS? I am quite new in this codebase, can anyone offer a feedback on this to me?<br><br>Reported bug is also affecting creation of new layers of all types (SpatialLite, Scratch) and will be solved as well, because the CRS initialization pattern is the same.<br><br></div><div>Looking forward to your opinions,<br></div><div>Juraj Komacka<br></div></div>