-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to overwrite the default style of a geopackage layer #42811
Comments
Confirmed also on master. |
@rouault if you have some qgis bug fixing time left do you mind looking at this one? Somehow the database is remaining locked after the first "save as default style" action, so subsequent ones made after the layer is unloaded and reloaded fail. But I'm unable to debug why the locking is being released here... |
I tried to reproduce the issue, but everything works fine for me. However could you try the following patch ?
|
@rouault
|
hum, still no issue for me when following your procedure... Can you try the following patch (potentially combined with my initial one) ?
|
Credit to @rouault for the fix! Fixes qgis#42811
Thanks @nyalldawson and @rouault |
Credit to @rouault for the fix! Fixes qgis#42811
Credit to @rouault for the fix! Fixes qgis#42811 (cherry picked from commit eef6939)
Credit to @rouault for the fix! Fixes qgis#42811 (cherry picked from commit eef6939)
Describe the bug
Using a layer from a geopackage, you can define a default style and save it in the data source. Nevertheless, if a layer already has a default style, replacing it by trying to save a new default won't work.
How to Reproduce
If you reload the layer, the old style will be loaded, not the new one. Furthermore, if you check the messages panel, you will notice and
2021-04-15T11:26:22 WARNING Error updating style
in the general panel.QGIS and OS versions
Also tested on Windows 10 with the same results.
Additional context
The text was updated successfully, but these errors were encountered: