Uri property is mandatory for history operations
This commit is contained in:
parent
7086111024
commit
a770a1b488
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue