diff options
author | pazz <patricktotzke@gmail.com> | 2011-05-27 09:45:35 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-05-27 09:45:35 +0100 |
commit | c2cbc549b69e8548e886caaf0a0a10d0964d1a82 (patch) | |
tree | b60d56fcfd1a0cd656f1930f5926308388062352 /alot | |
parent | bbc75859f65b999d5536f0caeeae8f605b4c6382 (diff) |
fix update of threadlinewidgets on toggletag
Diffstat (limited to 'alot')
-rw-r--r-- | alot/command.py | 2 | ||||
-rw-r--r-- | alot/db.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/alot/command.py b/alot/command.py index a2100f20..64d0ba03 100644 --- a/alot/command.py +++ b/alot/command.py @@ -229,7 +229,7 @@ class ToggleThreadTagCommand(Command): #if ui.dbman.count_messages(qs) == 0: # ui.logger.debug('remove: %s'%self.thread) # #sbuffer.threadlist.remove(threadwidget) - sbuffer.rebuild() + #sbuffer.rebuild() @@ -73,7 +73,7 @@ class Thread: for t in tags: msg.remove_tag(t) msg.thaw() - self.tags = [t for t in self.tags if t in tags] + self.tags = [t for t in self.tags if t not in tags] def get_tags(self): return self.tags @@ -138,7 +138,7 @@ class Message: f_mail.close() return eml - def add_tags(self, tags, untag=False): + def add_tags(self, tags): msg = self.dbman.get_message(self.mid) msg.freeze() for tag in tags: @@ -154,4 +154,4 @@ class Message: msg.remove_tag(tag) logging.debug('untag %s'%tags) msg.thaw() - self.tags = [t for t in self.tags if t in tags] + self.tags = [t for t in self.tags if t not in tags] |