Dont add items with empty uris into history

This commit is contained in:
Alexander Butenko 2010-07-23 11:19:38 -04:00 committed by Christian Dywan
parent d78efc0863
commit 1339dc671b

View file

@ -616,8 +616,10 @@ midori_view_notify_title_cb (GtkWidget* widget,
KatzeItem* proxy;
if (browser->history && browser->maximum_history_age)
{
const gchar* proxy_uri;
proxy = midori_view_get_proxy_item (view);
if (katze_item_get_uri (proxy) &&
proxy_uri = katze_item_get_uri (proxy);
if (proxy_uri && *proxy_uri && proxy_uri[1] &&
(katze_item_get_meta_integer (proxy, "process") == -1))
{
midori_browser_new_history_item (browser, proxy);