Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-16 13:28:25 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-16 13:28:25 (GMT)
commit84dcb022cb1b05d77afc0e4181bfa8b95429d17e (patch)
tree5c6df355138c0d69ed690474d182083ca48939ca /sugar
parentc0cd2cf9a60986ab90f696470c0b2db84ac62b1e (diff)
Don't popdown the same control we are told to popup.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/graphics/popupcontext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/popupcontext.py b/sugar/graphics/popupcontext.py
index 99498e9..df4a9b3 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')