From f04301bf5e05d5f808b628afd4cd34379801b3e9 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 6 Oct 2020 14:33:44 +0200 Subject: [PATCH] fixed instance toggle --- pype/tools/pyblish_pype/view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pype/tools/pyblish_pype/view.py b/pype/tools/pyblish_pype/view.py index 6ecc4dfdc7..248c1fbbf9 100644 --- a/pype/tools/pyblish_pype/view.py +++ b/pype/tools/pyblish_pype/view.py @@ -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