-
Notifications
You must be signed in to change notification settings - Fork 65
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
Fix of writing/reading QSettings #1193
Conversation
What was the actual issue, why do we need to set NativeFormat? (and which one is the default normally?) |
Actually it is super weird, because the default defaultFormat was NativeFormat. Also checked QSettings::scope as well as appname and organization. All seems to be set ok. If needed, I am happy to investigate it more what actually happen when DefaultFormat is set manually and what is difference from an empty constructor. It is not clear to me and of course it raises suspicious what is actually going on. |
Yes please if you could have a look... it could be that when we initialize QGIS libs they do some magic with QSettings and override the default? (QGIS likes to use .ini format for settings) |
Wrong order of initialization
Indeed, the problem was elsewhere - caused by messed up qgis init and initialization of AppSettings. |
Cool thanks. Can you maybe add a comment to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
I do not know whether I understood the problem completely. If it was only about AppSettings
not storing and reloading saved options, then this is working ✔️ . If anything else needs to be retested, let me know.
Maybe it would be a good idea to add manual test for QSettings - if they are actually being saved and reloaded. We can mess up things like this from time to time
closes issue related to not be able to save gspTolerance