Updating branch refs/heads/master
         to 1339dc671b9e656e84b53d21cd0d2863e80fe533 (commit)
       from d78efc08631bec76727f2458e1162229b40ea12d (commit)

commit 1339dc671b9e656e84b53d21cd0d2863e80fe533
Author: Alexander Butenko <a.bute...@gmail.com>
Date:   Fri Jul 23 11:19:38 2010 -0400

    Dont add items with empty uris into history

 midori/midori-browser.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index b82abaf..f4e7a75 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);
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to