From 8ac7a799ad7917324edbdb15ccbbd3bfcd529896 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 27 Jul 2009 07:56:17 -0400 Subject: [PATCH] Comment.remove() now ignores .sync_with_disk when removing the root comment. --- libbe/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbe/comment.py b/libbe/comment.py index bf14920..1e2ef1a 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -591,7 +591,7 @@ class Comment(Tree, settings_object.SavedSettingsObject): self.set_sync_with_disk(False) def remove(self): - if self.sync_with_disk == False: + if self.sync_with_disk == False and self.uuid != INVALID_UUID: raise DiskAccessRequired("remove") for comment in self.traverse(): path = comment.get_path() -- 2.26.2