aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-27 07:56:17 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-27 07:56:17 -0400
commit8ac7a799ad7917324edbdb15ccbbd3bfcd529896 (patch)
tree99938419ef13f74cc1837b49773e740b47ec0dff /libbe/comment.py
parent0cacaf8809ade66e595361b30290234be3a6d8b0 (diff)
downloadbugseverywhere-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.py2
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()