]> spindle.queued.net Git - midori/commitdiff
Fail silently to the the current browser page if it's invalid
authorChristian Dywan <christian@twotoasts.de>
Sun, 19 Jul 2009 16:46:03 +0000 (18:46 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 19 Jul 2009 16:46:03 +0000 (18:46 +0200)
midori/midori-browser.c

index 07f7df57b1a4a5752764448ced0991cb2e6b24ec..2c166e0dfd8a4653ed163edf92330b7c246e8f55 100644 (file)
@@ -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);
 }