]> spindle.queued.net Git - midori/commitdiff
Don't show link numbers if there is no href
authorChristian Dywan <christian@twotoasts.de>
Sun, 13 Mar 2011 13:50:21 +0000 (14:50 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 13 Mar 2011 14:03:45 +0000 (15:03 +0100)
Those can't actually be opened so it's confusing.

midori/midori-view.c

index 0e7558e326fc497e6c3bc680525e4cd94cfcb6e0..39bdb89540bbc23732aecffd15049dfa798f352d 100644 (file)
@@ -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;