fixes double mouse capturing after forcing variable in debug mode
authorSurkov Sergey <surkovsv93@gmail.com>
Wed, 28 Jun 2017 18:38:52 +0300
changeset 1711 a0682ec03f1f
parent 1710 953ceea2573e
child 1713 ae58d214997c
fixes double mouse capturing after forcing variable in debug mode
this problem appears on Linux
editors/Viewer.py
--- a/editors/Viewer.py	Tue Jun 27 19:21:09 2017 +0300
+++ b/editors/Viewer.py	Wed Jun 28 18:38:52 2017 +0300
@@ -1606,6 +1606,8 @@
                 menu.Enable(new_id, True)
             else:
                 menu.Enable(new_id, False)
+            if self.Editor.HasCapture():
+                self.Editor.ReleaseMouse()
             self.Editor.PopupMenu(menu)
             menu.Destroy()