From a770a1b488bc06abd658c2def6e328b3fea15e2c Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Thu, 22 Jul 2010 09:28:18 -0400 Subject: [PATCH] Uri property is mandatory for history operations --- midori/midori-browser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 460494a0..b82abafc 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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); -- 2.39.5