Don't show link numbers if there is no href

Those can't actually be opened so it's confusing.
This commit is contained in:
Christian Dywan 2011-03-13 14:50:21 +01:00
parent b1dee99409
commit e06c2052a0

View 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;