]> spindle.queued.net Git - midori/commitdiff
Uri property is mandatory for history operations
authorAlexander Butenko <a.butenka@gmail.com>
Thu, 22 Jul 2010 13:28:18 +0000 (09:28 -0400)
committerChristian Dywan <christian@twotoasts.de>
Fri, 23 Jul 2010 19:19:56 +0000 (21:19 +0200)
midori/midori-browser.c

index 460494a06d9f9cb1c2048dfd5c1d70f7a72d3540..b82abafc40cdf8bb7248c85fb2a7e1bec122a601 100644 (file)
@@ -477,6 +477,8 @@ midori_browser_update_history_title (MidoriBrowser* browser,
     sqlite3* db;
     static sqlite3_stmt* stmt = NULL;
 
+    g_return_if_fail (katze_item_get_uri (item) != NULL);
+
     db = g_object_get_data (G_OBJECT (browser->history), "db");
     if (!stmt)
     {
@@ -5347,6 +5349,8 @@ midori_browser_new_history_item (MidoriBrowser* browser,
     sqlite3* db;
     static sqlite3_stmt* stmt = NULL;
 
+    g_return_if_fail (katze_item_get_uri (item) != NULL);
+
     now = time (NULL);
     katze_item_set_added (item, now);
     day = sokoke_time_t_to_julian (&now);