From 758d5e1a1b6a6767c23310722fad1202cc978007 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 22 Feb 2009 00:12:18 +0100 Subject: [PATCH] Add a missing check whether 'settings' are set --- midori/midori-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index af7c66cb..85c15cd0 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -173,7 +173,7 @@ _toggle_tabbar_smartly (MidoriBrowser* browser) gboolean always_show_tabbar; n = gtk_notebook_get_n_pages (GTK_NOTEBOOK (browser->notebook)); - if (n < 2) + if (n < 2 && browser->settings) { g_object_get (browser->settings, "always-show-tabbar", &always_show_tabbar, NULL); -- 2.39.5