Fix bug ToolTip stay on screen when double click on FunctionBlock
authorlaurent
Wed, 15 Feb 2012 00:26:30 +0100
changeset 643 941eda65db7a
parent 642 f2325ebd67f4
child 644 6ff54a34102b
Fix bug ToolTip stay on screen when double click on FunctionBlock
Viewer.py
--- a/Viewer.py	Wed Feb 15 00:25:05 2012 +0100
+++ b/Viewer.py	Wed Feb 15 00:26:30 2012 +0100
@@ -1416,7 +1416,7 @@
     def OnViewerMouseEvent(self, event):
         if not event.Entering():
             element = None
-            if not event.Leaving():
+            if not event.Leaving() and not event.LeftUp() and not event.LeftDClick():
                 element = self.FindElement(event, True, False)
             if self.ToolTipElement is not None:
                 self.ToolTipElement.ClearToolTip()