From 22271a661eb63b0fabec940b55900eb94c11e5b6 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 19 Jul 2009 18:46:03 +0200 Subject: [PATCH] Fail silently to the the current browser page if it's invalid --- midori/midori-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5