mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
GSettings - fix GObject warning when old prefs-version is unset
This will happen when current master (future 5.0) has been run at least once.
This commit is contained in:
parent
9825132eab
commit
bdb06479e8
@ -831,7 +831,8 @@ void gnc_gsettings_version_upgrade (void)
|
||||
g_variant_unref (ogG_maj_min);
|
||||
old_maj_min = gnc_gsettings_get_int (GNC_PREFS_GROUP_GENERAL, GNC_PREF_VERSION);
|
||||
}
|
||||
g_variant_unref (og_maj_min);
|
||||
if (og_maj_min)
|
||||
g_variant_unref (og_maj_min);
|
||||
|
||||
PINFO ("Previous setting compatibility level: %i", old_maj_min);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user