From 84dcb022cb1b05d77afc0e4181bfa8b95429d17e Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 16 Mar 2007 14:28:25 +0100 Subject: [PATCH] Don't popdown the same control we are told to popup. --- sugar/graphics/popupcontext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/popupcontext.py b/sugar/graphics/popupcontext.py index 99498e93..df4a9b36 100644 --- a/sugar/graphics/popupcontext.py +++ b/sugar/graphics/popupcontext.py @@ -30,7 +30,7 @@ class PopupContext(gobject.GObject): gobject.GObject.__init__(self) def popped_up(self, control): - if self._active_control: + if self._active_control and self._active_control != control: self._active_control.popdown() self._active_control = control self.emit('activated')