Add a missing check whether 'settings' are set
This commit is contained in:
parent
3d42b7453a
commit
758d5e1a1b
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ _toggle_tabbar_smartly (MidoriBrowser* browser)
|
||||||
gboolean always_show_tabbar;
|
gboolean always_show_tabbar;
|
||||||
|
|
||||||
n = gtk_notebook_get_n_pages (GTK_NOTEBOOK (browser->notebook));
|
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",
|
g_object_get (browser->settings, "always-show-tabbar",
|
||||||
&always_show_tabbar, NULL);
|
&always_show_tabbar, NULL);
|
||||||
|
|
Loading…
Reference in a new issue