From b84ad5449f342997301d8ac2569cced51aaba0d9 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 5 Oct 2020 19:11:51 +0200 Subject: [PATCH] moved variable definition --- pype/tools/pyblish_pype/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pype/tools/pyblish_pype/view.py b/pype/tools/pyblish_pype/view.py index 11a6217712..56c396d027 100644 --- a/pype/tools/pyblish_pype/view.py +++ b/pype/tools/pyblish_pype/view.py @@ -214,8 +214,8 @@ class InstanceView(OverviewView): ): if event.pos().x() < 20: indexes = self.selectionModel().selectedIndexes() + any_checked = False if pos_index in indexes: - any_checked = False for index in indexes: if index.data(QtCore.Qt.CheckStateRole): any_checked = True