From 693d8e75dc37a5a3f072dcee4fe1494a2448b12f Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 21 Aug 2020 11:50:01 +0200 Subject: [PATCH] use default icon if icon for variants was not found --- pype/tools/launcher/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pype/tools/launcher/models.py b/pype/tools/launcher/models.py index 3fb201702e..b2743d221c 100644 --- a/pype/tools/launcher/models.py +++ b/pype/tools/launcher/models.py @@ -199,6 +199,9 @@ class ActionModel(QtGui.QStandardItemModel): if order is None or action.order < order: order = action.order + if icon is None: + icon = self.default_icon + item = QtGui.QStandardItem(icon, action.label) item.setData(actions, self.ACTION_ROLE) item.setData(True, self.VARIANT_GROUP_ROLE)