[tor-commits] [arm/release] fix: Reverting one of the map changes
atagar at torproject.org
atagar at torproject.org
Sun Jul 17 06:08:23 UTC 2011
commit 3ec4ad0a4be48b6674b7107fbc30ca8894b45d13
Author: Damian Johnson <atagar at torproject.org>
Date: Sat Jun 4 21:37:57 2011 -0700
fix: Reverting one of the map changes
Mistakenly thought map could call object methods (oops). This caused a crash
with most popups.
---
src/cli/popups.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cli/popups.py b/src/cli/popups.py
index 4bb519d..8061c8f 100644
--- a/src/cli/popups.py
+++ b/src/cli/popups.py
@@ -26,7 +26,7 @@ def init(height = -1, width = -1, top = 0, left = 0, belowStatic = True):
control = cli.controller.getController()
if belowStatic:
- stickyHeight = sum(map(getHeight, control.getStickyPanels()))
+ stickyHeight = sum([stickyPanel.getHeight() for stickyPanel in control.getStickyPanels()])
else: stickyHeight = 0
popup = panel.Panel(control.getScreen(), "popup", top + stickyHeight, left, height, width)
More information about the tor-commits
mailing list