From dfb68b7047518fe621dd2c3ba3fe1ce29c06dc5d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Mar 2015 21:22:03 +0530 Subject: [PATCH] ... --- src/calibre/gui2/open_with.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/open_with.py b/src/calibre/gui2/open_with.py index 5b11cab281..854331d10f 100644 --- a/src/calibre/gui2/open_with.py +++ b/src/calibre/gui2/open_with.py @@ -101,7 +101,9 @@ if iswindows: return entry def entry_to_item(entry, parent): - icon = load_icon_resource(entry.get('icon_resource')) or QIcon(I('blank.png')) + icon = load_icon_resource(entry.get('icon_resource')) + if not icon: + icon = entry_to_icon_text(entry)[0] ans = QListWidgetItem(icon, entry.get('name') or _('Unknown'), parent) ans.setData(ENTRY_ROLE, entry) ans.setToolTip(_('Command line:') + '\n' + entry['cmdline'])