summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-08-12 19:43:25 +0100
committerpazz <patricktotzke@gmail.com>2011-08-12 19:43:25 +0100
commitf9c4d78d015131b318b992399c167d998030f77b (patch)
tree2af7a55910eb07df1b4a83fd966996dd88e83112 /alot
parent76e347956e51352d0d2dbb12ea3ab05284e5b67f (diff)
hotfix: issue #65
a better fix should come with issue #16: properly build the widgets incl. getter!
Diffstat (limited to 'alot')
-rw-r--r--alot/widgets.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/alot/widgets.py b/alot/widgets.py
index 69212e59..ed10db41 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -299,10 +299,11 @@ class MessageWidget(urwid.WidgetWrap):
def toggle_full_header(self):
"""toggles if message headers are shown"""
- hw = self._get_header_widget().get_focus()
- hw.toggle_all()
+ # caution: this is very ugly, it's supposed to get the headerwidget.
+ col = self._get_header_widget().widet_list
+ hws = [h for h in col if isinstance(h, MessageHeaderWidget)][0]
+ hw[0].toggle_all()
- #TODO: toggle header/body should call this..
def fold(self, visible=False):
hw = self._get_header_widget()
aw = self._get_attachment_widget()