Bug report #21691

Styles stored in QML files with same name as layer no longer auto loaded

Added by Andrew Robinson 5 months ago. Updated 3 months ago.

Status:Closed
Priority:High
Assignee:Alexander Bruy
Category:Symbology
Affected QGIS version:3.6.0 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29507

Description

In QGIS 3.2 if I save a vector layer (GeoPackage) as My_Layer.gpkg and I save the styles in a QML file with the same e.g My_Layer.qml, in the same directory as the vector layer then the styles are automatically loaded when that vector layer is opened. In QGIS 3.6 this no longer happens. Instead the QML file must be manually loaded.

Associated revisions

Revision 76104b51
Added by Alexander Bruy 3 months ago

load style from the QML file with the same name as layer file name
for GeoPackages, CSV and SpatiaLite (fix #21691)

Revision c13bd14e
Added by Alexander Bruy 3 months ago

load style from the QML file with the same name as layer file name
for GeoPackages, CSV and SpatiaLite (fix #21691)

Revision ab2d6f4f
Added by Alexander Bruy 3 months ago

load style from the QML file with the same name as layer file name
for GeoPackages, CSV and SpatiaLite (fix #21691)

History

#1 Updated by Giovanni Manghi 5 months ago

  • Operating System deleted (Windows 10)
  • Priority changed from Normal to High

Also on Linux.

#2 Updated by Alexander Bruy 3 months ago

  • Assignee set to Alexander Bruy

Actually this is happens only with layers which come from GeoPackage and other similar (multi-layer) sources. Styles autoload works fine for other layers, e.g. shapefiles. And as far as I can see it also does not works with GeoPackages in 3.2

#3 Updated by Alexander Bruy 3 months ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF