]> spindle.queued.net Git - midori/commitdiff
Don't remove edited bookmark from parent if it's at the toplevel
authorChristian Dywan <christian@twotoasts.de>
Fri, 11 Dec 2009 23:14:20 +0000 (00:14 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 11 Dec 2009 23:14:20 +0000 (00:14 +0100)
midori/midori-browser.c

index fded216c37dac2cfb929932943e721a5efacdbb8..13ad83502489794cefa4cfcf604cc434927651f1 100644 (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;