[Xfce4-commits] <midori:master> Don't show link numbers if there is no href

Christian Dywan noreply at xfce.org
Sun Mar 13 15:04:01 CET 2011


Updating branch refs/heads/master
         to e06c2052a07460e307fa7f0f6f7ca6a4ffd6841a (commit)
       from b1dee99409005dfc404978bcce3be6f44178a1ee (commit)

commit e06c2052a07460e307fa7f0f6f7ca6a4ffd6841a
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Mar 13 14:50:21 2011 +0100

    Don't show link numbers if there is no href
    
    Those can't actually be opened so it's confusing.

 midori/midori-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 0e7558e..39bdb89 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -1870,7 +1870,7 @@ gtk_widget_key_press_event_cb (WebKitWebView* web_view,
                 "  var child = document.createElement ('span');"
                 "  child.setAttribute ('class', 'midoriHKD87346');"
                 "  child.appendChild (document.createTextNode (i));"
-                "  if (links[i].insertBefore)"
+                "  if (links[i].insertBefore && links[i].href)"
                 "    links[i].insertBefore (child); }",
                 NULL);
             view->find_links = 0;



More information about the Xfce4-commits mailing list