summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-12-27 16:28:05 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2011-12-27 16:28:05 +0000
commitfc1bdca95bf44ec65d3bcb513f0d6fe18dae142c (patch)
tree336616e0c1f81a22ac4e640f092a76143c17d8a1 /alot
parentdaca4b6aca3eb7ffbf256ae6bbdddc799a91e3bd (diff)
update ThreadBuffer wrt new folding method
folding of MessageWidgets is now done by setting widget.folded to True and calling widget.refresh()
Diffstat (limited to 'alot')
-rw-r--r--alot/buffers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index a9ab8e41..2aad4a4b 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -294,10 +294,11 @@ class ThreadBuffer(Buffer):
for mw in self.get_message_widgets():
msg = mw.get_message()
if msg.matches(querystring):
- mw.fold(visible=True)
+ mw.folded = False
if 'unread' in msg.get_tags():
msg.remove_tags(['unread'])
self.ui.apply_command(commands.globals.FlushCommand())
+ mw.rebuild()
class TagListBuffer(Buffer):