From 1339dc671b9e656e84b53d21cd0d2863e80fe533 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Fri, 23 Jul 2010 11:19:38 -0400 Subject: [PATCH] Dont add items with empty uris into history --- midori/midori-browser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index b82abafc..f4e7a75f 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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); -- 2.39.5