Fall back to the first if the last active tab is not there anymore
This commit is contained in:
parent
582310203a
commit
6bd19cd4d9
1 changed files with 2 additions and 1 deletions
|
@ -1310,7 +1310,8 @@ midori_load_session (gpointer data)
|
||||||
if (current < 0)
|
if (current < 0)
|
||||||
current = 0;
|
current = 0;
|
||||||
midori_browser_set_current_page (browser, current);
|
midori_browser_set_current_page (browser, current);
|
||||||
item = katze_array_get_nth_item (_session, current);
|
if (!(item = katze_array_get_nth_item (_session, current)))
|
||||||
|
item = katze_array_get_nth_item (_session, 0);
|
||||||
if (!strcmp (katze_item_get_uri (item), ""))
|
if (!strcmp (katze_item_get_uri (item), ""))
|
||||||
midori_browser_activate_action (browser, "Location");
|
midori_browser_activate_action (browser, "Location");
|
||||||
g_object_unref (_session);
|
g_object_unref (_session);
|
||||||
|
|
Loading…
Reference in a new issue