Bug fix: --cache-maintenance and default theme color
authorColin Clark <colin.clark@cclark.uk>
Tue, 12 Oct 2021 09:15:10 +0000 (10:15 +0100)
committerColin Clark <colin.clark@cclark.uk>
Tue, 12 Oct 2021 09:15:10 +0000 (10:15 +0100)
If geeqie --cache-maintenance is run without a custom border color
selected, there will be a seg. fault.

src/main.c

index 91f8443..0e4815a 100644 (file)
@@ -1662,11 +1662,11 @@ gint main(gint argc, gchar *argv[])
                g_free(buf);
 
                marks_load();
-       }
 
-       default_settings = gtk_settings_get_default();
-       g_signal_connect(default_settings, "notify::gtk-theme-name", G_CALLBACK(theme_change_cb), NULL);
-       set_theme_bg_color();
+               default_settings = gtk_settings_get_default();
+               g_signal_connect(default_settings, "notify::gtk-theme-name", G_CALLBACK(theme_change_cb), NULL);
+               set_theme_bg_color();
+               }
 
        DEBUG_1("%s main: gtk_main", get_exec_time());
        gtk_main();