Uri property is mandatory for history operations

This commit is contained in:
Alexander Butenko 2010-07-22 09:28:18 -04:00 committed by Christian Dywan
parent 7086111024
commit a770a1b488

View file

@ -477,6 +477,8 @@ midori_browser_update_history_title (MidoriBrowser* browser,
sqlite3* db; sqlite3* db;
static sqlite3_stmt* stmt = NULL; 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"); db = g_object_get_data (G_OBJECT (browser->history), "db");
if (!stmt) if (!stmt)
{ {
@ -5347,6 +5349,8 @@ midori_browser_new_history_item (MidoriBrowser* browser,
sqlite3* db; sqlite3* db;
static sqlite3_stmt* stmt = NULL; static sqlite3_stmt* stmt = NULL;
g_return_if_fail (katze_item_get_uri (item) != NULL);
now = time (NULL); now = time (NULL);
katze_item_set_added (item, now); katze_item_set_added (item, now);
day = sokoke_time_t_to_julian (&now); day = sokoke_time_t_to_julian (&now);