Make sure to only update the proxy array if it's still there
The proxy array of the browser is unset during disposal, so we may end up trying to work with a NULL value.
This commit is contained in:
parent
e6ecea4194
commit
3ac71da2c4
1 changed files with 3 additions and 2 deletions
|
@ -4009,8 +4009,9 @@ gtk_notebook_switch_page_cb (GtkWidget* notebook,
|
||||||
gtk_window_set_title (GTK_WINDOW (browser), window_title);
|
gtk_window_set_title (GTK_WINDOW (browser), window_title);
|
||||||
g_free (window_title);
|
g_free (window_title);
|
||||||
|
|
||||||
katze_item_set_meta_integer (KATZE_ITEM (browser->proxy_array), "current",
|
if (browser->proxy_array)
|
||||||
midori_browser_get_current_page (browser));
|
katze_item_set_meta_integer (KATZE_ITEM (browser->proxy_array), "current",
|
||||||
|
midori_browser_get_current_page (browser));
|
||||||
g_object_notify (G_OBJECT (browser), "uri");
|
g_object_notify (G_OBJECT (browser), "uri");
|
||||||
|
|
||||||
_midori_browser_set_statusbar_text (browser, NULL);
|
_midori_browser_set_statusbar_text (browser, NULL);
|
||||||
|
|
Loading…
Reference in a new issue