-
-
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
Bugfix gh38755 expose project setinstance #38758
Bugfix gh38755 expose project setinstance #38758
Conversation
Fixes qgis#38755 Needs forward porting to all active branches
I realise this is a regression fix, but it also makes me nervous in that a plugin calling this (outside of server) will cause major breakage to qgis app. Is there any alternative approach? |
I expected this objection but I don't really see a big issue here, the advantage is that it adds some more flexibility to the singleton management, that IMO should eventually disappear completely (QGIS 4 maybe?). I though about exposing it through a server specific API ( Another alternative is expose it through the config cache with an other optional argument to |
It might be the best alternative, since restoring the setInstance call in the QgsConfigCache only does not solve the issue: preventing to set the singleton breaks other behaviors (like expression/function evaluation) and has an impact on every python scripts that might use it.
+1 |
If you're going to expose it, please add a:
|
Fixes regression introduced in LTR => immediate merge |
Fixes #38755
Needs forward porting to all active branches