From: W. Trevor King Date: Mon, 27 Jul 2009 11:56:17 +0000 (-0400) Subject: Comment.remove() now ignores .sync_with_disk when removing the root comment. X-Git-Tag: 1.0.0~62^2~46^2~9^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ac7a799ad7917324edbdb15ccbbd3bfcd529896;p=be.git Comment.remove() now ignores .sync_with_disk when removing the root comment. --- 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()