mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Linux: Fix an error when trying to use a program by path with the Open with functionality.
This commit is contained in:
parent
ee2b2e8d20
commit
768bdc2d8e
@ -218,7 +218,10 @@ else:
|
|||||||
pmap = ic.pixmap(48, 48)
|
pmap = ic.pixmap(48, 48)
|
||||||
if not pmap.isNull():
|
if not pmap.isNull():
|
||||||
entry['icon_data'] = pixmap_to_data(pmap)
|
entry['icon_data'] = pixmap_to_data(pmap)
|
||||||
entry['MimeType'] = tuple(entry['MimeType'])
|
try:
|
||||||
|
entry['MimeType'] = tuple(entry['MimeType'])
|
||||||
|
except KeyError:
|
||||||
|
entry['MimeType'] = ()
|
||||||
return entry
|
return entry
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user