# HG changeset patch # User Surkov Sergey # Date 1498664332 -10800 # Node ID a0682ec03f1fb9160b04b40fd994b64f79933fae # Parent 953ceea2573eab4f10f156c41a60a4a453d6f87c fixes double mouse capturing after forcing variable in debug mode this problem appears on Linux diff -r 953ceea2573e -r a0682ec03f1f 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()