From: Christian Dywan Date: Sat, 21 Feb 2009 23:12:18 +0000 (+0100) Subject: Add a missing check whether 'settings' are set X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=758d5e1a1b6a6767c23310722fad1202cc978007;p=midori Add a missing check whether 'settings' are set --- 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);