aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-07 11:25:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-07 11:25:12 -0800
commitdab207a8c84ca0621a8a3cabd0b911e60347537d (patch)
tree155e1aec76d3e1b6494d76ec92579780ba4ab331
parentaaac2cbe9c031a64a100b169b836fe6afdcffab2 (diff)
downloadsubsurface-dab207a8c84ca0621a8a3cabd0b911e60347537d.tar.gz
Subsurface-mobile: load preferences after org is set up
The persistent storage of the preferences includes the Organization name set in the application. So we need to make sure we load the preferences AFTER setting up the Organization in the init_ui() call. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-mobile-main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp
index e58d32cea..4877f7e7e 100644
--- a/subsurface-mobile-main.cpp
+++ b/subsurface-mobile-main.cpp
@@ -52,11 +52,11 @@ int main(int argc, char **argv)
#endif
setup_system_prefs();
prefs = default_prefs;
- loadPreferences();
fill_profile_color();
parse_xml_init();
taglist_init_global();
init_ui();
+ loadPreferences();
if (no_filenames) {
if (prefs.default_file_behavior == LOCAL_DEFAULT_FILE) {
QString defaultFile(prefs.default_filename);