mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed instance toggle
This commit is contained in:
parent
939b03d74c
commit
f04301bf5e
1 changed files with 3 additions and 3 deletions
|
|
@ -227,6 +227,9 @@ class InstanceView(OverviewView):
|
|||
elif event.pos().x() < 20:
|
||||
indexes = self.selectionModel().selectedIndexes()
|
||||
any_checked = False
|
||||
if len(indexes) <= 1:
|
||||
return
|
||||
|
||||
if pos_index in indexes:
|
||||
for index in indexes:
|
||||
if index.data(QtCore.Qt.CheckStateRole):
|
||||
|
|
@ -238,9 +241,6 @@ class InstanceView(OverviewView):
|
|||
return True
|
||||
self.toggled.emit(pos_index, not any_checked)
|
||||
|
||||
elif event.pos().x() > self.width() - 20:
|
||||
self.show_perspective.emit(pos_index)
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
if self._mouse_press(event):
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue