summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorChristian Geier <geier@lostpackets.de>2017-09-23 19:34:59 +0200
committerChristian Geier <geier@lostpackets.de>2017-09-23 19:34:59 +0200
commit0a79e6e75f09eecb142c910fa17f784ffcaae50a (patch)
tree43a6acf54feb6630ce0cfeb16d6e13fa087a79e5 /alot/widgets
parentc6b8efc1f6784d757c601036e0ff982487fe0d29 (diff)
Call _get_body() only once.
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index 4c4e1c30..5b2a55f3 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -207,7 +207,7 @@ class MessageTree(CollapsibleTree):
bodytree = self._get_body()
if bodytree is not None:
- mainstruct.append((self._get_body(), None))
+ mainstruct.append((bodytree, None))
structure = [
(self._get_summary(), mainstruct)