]> spindle.queued.net Git - midori/commitdiff
Add a missing check whether 'settings' are set
authorChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 23:12:18 +0000 (00:12 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 23:12:18 +0000 (00:12 +0100)
midori/midori-browser.c

index af7c66cb0cda53630d12d66b14dd0cab9117abea..85c15cd07a900d4d8017f612291b94beab7578a5 100644 (file)
@@ -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);