[devhelp/navigation-fix: 2/2] window: skip unneeded tree uri selection



commit f27b14c5fd5a48a9aad95cd423c5796d4ba6c2da
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Fri Feb 1 16:57:38 2013 +0100

    window: skip unneeded tree uri selection

 src/dh-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index c69cd24..67bfe1d 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -855,10 +855,13 @@ window_web_view_navigation_policy_decision_requested (WebKitWebView
                 return TRUE;
         }
 
+#ifndef HAVE_WEBKIT2
+        /* We already do this in load_changed_cb() for webkit2 */
         if (web_view == window_get_active_web_view (window)) {
                 dh_sidebar_select_uri (DH_SIDEBAR (priv->sidebar), uri);
                 window_check_history (window, web_view);
         }
+#endif
 
         return FALSE;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]