revert output of '_mouse_press'

This commit is contained in:
Jakub Trllo 2024-05-09 10:59:05 +02:00
parent 8b17cf5485
commit 168f8cdcc2

View file

@ -393,7 +393,7 @@ class InstanceTreeView(QtWidgets.QTreeView):
"double click" as 2x "single click".
"""
if event.button() != QtCore.Qt.LeftButton:
return False
return
pressed_group_index = None
pos_index = self.indexAt(event.pos())
@ -402,8 +402,6 @@ class InstanceTreeView(QtWidgets.QTreeView):
self._pressed_group_index = pressed_group_index
return True
def mousePressEvent(self, event):
self._mouse_press(event)
super(InstanceTreeView, self).mousePressEvent(event)