[Xfce4-commits] <midori:master> Uri property is mandatory for history operations

Christian Dywan noreply at xfce.org
Fri Jul 23 22:06:05 CEST 2010


Updating branch refs/heads/master
         to a770a1b488bc06abd658c2def6e328b3fea15e2c (commit)
       from 70861110247c4e33482aee5352084eed38949805 (commit)

commit a770a1b488bc06abd658c2def6e328b3fea15e2c
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Thu Jul 22 09:28:18 2010 -0400

    Uri property is mandatory for history operations

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

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 460494a..b82abaf 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);



More information about the Xfce4-commits mailing list