From: Christian Dywan Date: Fri, 11 Dec 2009 23:14:20 +0000 (+0100) Subject: Don't remove edited bookmark from parent if it's at the toplevel X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e403f2259bedfa74f7dedca08b418bfa76cd2031;p=midori Don't remove edited bookmark from parent if it's at the toplevel --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index fded216c..13ad8350 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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;