]> spindle.queued.net Git - midori/commitdiff
Dont add items with empty uris into history
authorAlexander Butenko <a.butenka@gmail.com>
Fri, 23 Jul 2010 15:19:38 +0000 (11:19 -0400)
committerChristian Dywan <christian@twotoasts.de>
Fri, 23 Jul 2010 19:57:40 +0000 (21:57 +0200)
midori/midori-browser.c

index b82abafc40cdf8bb7248c85fb2a7e1bec122a601..f4e7a75fb3ccb3d2efe2b3a9467d1a21ee69b44a 100644 (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);