fix xdg-menu to not crash without icon file (#737112)

epel9
Ralph Giles 14 years ago committed by Miroslav Lichvar
parent dbb7ea9895
commit 32214976a0

@ -48,7 +48,8 @@ def icon_attr(entry):
if iconinfo:
iconfile = iconinfo.get_filename()
iconinfo.free()
return ' icon="' + iconfile + '"'
if iconfile:
return ' icon="' + iconfile + '"'
return ''
def entry_name(entry):

Loading…
Cancel
Save