From: Christian Dywan Date: Sun, 19 Jul 2009 16:46:03 +0000 (+0200) Subject: Fail silently to the the current browser page if it's invalid X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22271a661eb63b0fabec940b55900eb94c11e5b6;p=midori Fail silently to the the current browser page if it's invalid --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 07f7df57..2c166e0d 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -5978,7 +5978,7 @@ midori_browser_set_current_page (MidoriBrowser* browser, view = gtk_notebook_get_nth_page (GTK_NOTEBOOK (browser->notebook), n); if (view && midori_view_is_blank (MIDORI_VIEW (view))) gtk_action_activate (_action_by_name (browser, "Location")); - else + else if (view) gtk_widget_grab_focus (view); }