From f0d2c49355317bc498277749a97c1aaa28871f9c Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 19 Jan 2011 21:34:39 +0100 Subject: [PATCH] Fix invalid bookmark warning and move into insertion --- midori/main.c | 3 --- panels/midori-bookmarks.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/midori/main.c b/midori/main.c index cd0b2ef0..31276b01 100644 --- a/midori/main.c +++ b/midori/main.c @@ -494,9 +494,6 @@ midori_bookmarks_add_item_cb (KatzeArray* array, KatzeItem* item, sqlite3* db) { - g_return_if_fail (!katze_item_get_name (item) - && !katze_item_get_uri (item)); - midori_bookmarks_insert_item_db (db, item, katze_item_get_meta_string (item, "folder")); } diff --git a/panels/midori-bookmarks.c b/panels/midori-bookmarks.c index f059a7cd..3e0924f0 100644 --- a/panels/midori-bookmarks.c +++ b/panels/midori-bookmarks.c @@ -242,6 +242,9 @@ midori_bookmarks_insert_item_db (sqlite3* db, gchar* parent; gchar* uri; + g_return_if_fail (katze_item_get_name (item) + && katze_item_get_uri (item)); + if (KATZE_ITEM_IS_BOOKMARK (item)) uri = g_strdup (katze_item_get_uri (item)); else -- 2.39.5