(LegendTree.__init__): Instance variable raiseProperties initialized to prevent endless loops (LegendTree._OnItemActivated): Depending on self.raiseProperties simply raise the properties or open the dialog and issue a second event.