Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix loading of the default style from QML file (fix #21691) #14660
When loading a layer QGIS tries also to apply default style to it and one of the options for default style is a QML file with the same name as layer file. This works fine for simple layers like shapefiles, but fails when layer URI is not a canonical file path, e.g. for GeoPackages (
This PR is an attempt to partially fix the issue and allows loading default style from the QML file with the same name as GeoPackage/SpatiaLite/CSV layer file has. Note that it will work only for GeoPackage/SpatiaLite files containing single layer and when QML file has the same name as GeoPackage/SpatiaLite, not with the name of the layer inside it.
Fixes https://issues.qgis.org/issues/21691. With tests