From e403f2259bedfa74f7dedca08b418bfa76cd2031 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 12 Dec 2009 00:14:20 +0100 Subject: [PATCH] Don't remove edited bookmark from parent if it's at the toplevel --- midori/midori-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5