gnucash maint: Bug 798672 - Preferences are not saved nor loaded, ERROR <GLib-GIO> g_settings_new_full: assertion 'schema != NULL' failed

Geert Janssens gjanssens at code.gnucash.org
Tue Nov 29 06:27:29 EST 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/98251d59 (commit)
	from  https://github.com/Gnucash/gnucash/commit/5dc52459 (commit)



commit 98251d59a6e6940efae2001a1e619c08828c8738
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Tue Nov 29 12:27:21 2022 +0100

    Bug 798672 - Preferences are not saved nor loaded, ERROR <GLib-GIO> g_settings_new_full: assertion 'schema != NULL' failed
    
    Apparently it was a failure on our side to properly look up
    requested gsettings schema.

diff --git a/libgnucash/app-utils/gnc-gsettings.cpp b/libgnucash/app-utils/gnc-gsettings.cpp
index a78589ab4..58b1bd599 100644
--- a/libgnucash/app-utils/gnc-gsettings.cpp
+++ b/libgnucash/app-utils/gnc-gsettings.cpp
@@ -106,7 +106,7 @@ static GSettings * gnc_gsettings_get_settings_ptr (const gchar *schema_str)
     {
         auto schema_source {g_settings_schema_source_get_default()};
         auto schema {g_settings_schema_source_lookup(schema_source, full_name,
-                                                     FALSE)};
+                                                     TRUE)};
         gset = g_settings_new_full (schema, nullptr, nullptr);
         DEBUG ("Created gsettings object %p for schema %s", gset, full_name);
         if (G_IS_SETTINGS(gset))



Summary of changes:
 libgnucash/app-utils/gnc-gsettings.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list