Add a missing check whether 'settings' are set

This commit is contained in:
Christian Dywan 2009-02-22 00:12:18 +01:00
parent 3d42b7453a
commit 758d5e1a1b

View 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);