Fixed bug with mouse capture not released in graphic Viewers in debug mode when drag'n dropping wire variable to DebugVariablePanel
authorLaurent Bessard
Thu, 24 Jan 2013 00:42:59 +0100
changeset 908 50a8192fbb23
parent 907 591cb3d96980
child 909 852af7c6f0ef
Fixed bug with mouse capture not released in graphic Viewers in debug mode when drag'n dropping wire variable to DebugVariablePanel
editors/Viewer.py
--- a/editors/Viewer.py	Tue Jan 22 23:33:20 2013 +0100
+++ b/editors/Viewer.py	Thu Jan 24 00:42:59 2013 +0100
@@ -1965,6 +1965,9 @@
                         dragSource = wx.DropSource(self.Editor)
                         dragSource.SetData(data)
                         dragSource.DoDragDrop()
+                        if self.Editor.HasCapture():
+                            self.Editor.ReleaseMouse()
+                        wx.CallAfter(self.SetCurrentCursor, 0)
             self.UpdateScrollPos(event)
         event.Skip()