From: Paweł Forysiuk Date: Tue, 18 Jan 2011 17:19:22 +0000 (+0100) Subject: Bail out with a warning when adding invalid folder X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30cc8b06947c7f88d913842ddac61220cc1ee46b;p=midori Bail out with a warning when adding invalid folder --- diff --git a/midori/main.c b/midori/main.c index 31276b01..cd0b2ef0 100644 --- a/midori/main.c +++ b/midori/main.c @@ -494,6 +494,9 @@ 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")); }