From 0a79e6e75f09eecb142c910fa17f784ffcaae50a Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Sat, 23 Sep 2017 19:34:59 +0200 Subject: Call _get_body() only once. --- alot/widgets/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/widgets') 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) -- cgit v1.2.3