[devhelp] window: skip unneeded tree uri selection



commit abd5a66abea69e626d7f75abcfccf0e723576a11
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 349182f..c5a3b05 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -860,10 +860,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]