- fix for contextual menus on canvas when using PyQt versions > 5.12.1

- decision on which mouse button to use for panning is done now once when setting the plotcanvas
This commit is contained in:
Marius Stanciu
2020-04-05 16:32:16 +03:00
committed by Marius
parent bee2a9dddc
commit b53c1c403a
4 changed files with 28 additions and 10 deletions

View File

@@ -1419,10 +1419,12 @@ class FCMenu(QtWidgets.QMenu):
def __init__(self):
super().__init__()
self.mouse_is_panning = False
self.popup_active = False
def popup(self, pos, action=None):
self.mouse_is_panning = False
super().popup(pos)
self.mouse_is_panning = False
self.popup_active = True
class FCTab(QtWidgets.QTabWidget):