Bail out with a warning when adding invalid folder

This commit is contained in:
Paweł Forysiuk 2011-01-18 18:19:22 +01:00 committed by Christian Dywan
parent 535053a3e6
commit 30cc8b0694

View file

@ -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"));
}