Merge pull request #465 from pypeclub/bugfix/handle_missing_icon_in_launcher

Bugfix/handle missing icon in launcher
This commit is contained in:
Jakub Ježek 2020-08-21 15:48:18 +02:00 committed by GitHub
commit 7867e7e324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)