Don't remove edited bookmark from parent if it's at the toplevel

This commit is contained in:
Christian Dywan 2009-12-12 00:14:20 +01:00
parent 185ff3e338
commit e403f2259b

View file

@ -865,7 +865,7 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
}
}
g_free (selected);
if (folder != katze_item_get_parent (bookmark))
if (folder != katze_item_get_parent (bookmark) && folder != browser->bookmarks)
{
katze_array_remove_item (katze_item_get_parent (bookmark), bookmark);
new_bookmark = TRUE;