[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [arm/master] fix: Reverting one of the map changes



commit 3ec4ad0a4be48b6674b7107fbc30ca8894b45d13
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits