mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #465 from pypeclub/bugfix/handle_missing_icon_in_launcher
Bugfix/handle missing icon in launcher
This commit is contained in:
commit
7867e7e324
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue