diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-27 07:56:17 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-27 07:56:17 -0400 |
commit | 8ac7a799ad7917324edbdb15ccbbd3bfcd529896 (patch) | |
tree | 99938419ef13f74cc1837b49773e740b47ec0dff /libbe/comment.py | |
parent | 0cacaf8809ade66e595361b30290234be3a6d8b0 (diff) | |
download | bugseverywhere-8ac7a799ad7917324edbdb15ccbbd3bfcd529896.tar.gz |
Comment.remove() now ignores .sync_with_disk when removing the root comment.
Diffstat (limited to 'libbe/comment.py')
-rw-r--r-- | libbe/comment.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |