summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2017-09-25 10:49:34 +0100
committerGitHub <noreply@github.com>2017-09-25 10:49:34 +0100
commit018aa2e339f9cb3bb4af1d26cce31cbad003409d (patch)
tree43a6acf54feb6630ce0cfeb16d6e13fa087a79e5
parentc6b8efc1f6784d757c601036e0ff982487fe0d29 (diff)
parent0a79e6e75f09eecb142c910fa17f784ffcaae50a (diff)
Merge pull request #1159 from geier/get_body
Call _get_body() only once.
-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)