Don't try to show the popup of a detached canvas icon.

This commit is contained in:
Tomeu Vizoso 2007-04-17 16:54:01 -03:00
parent b7030a74dd
commit 734d16022e

View File

@ -369,6 +369,11 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
if not self._popup:
return
if not self.get_context():
# If we have been detached from our parent, don't show up the popup
# in this case.
return
popup_context = self.get_popup_context()
[x, y] = [None, None]