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,6 +48,7 @@ def icon_attr(entry):
if iconinfo: if iconinfo:
iconfile = iconinfo.get_filename() iconfile = iconinfo.get_filename()
iconinfo.free() iconinfo.free()
if iconfile:
return ' icon="' + iconfile + '"' return ' icon="' + iconfile + '"'
return '' return ''

Loading…
Cancel
Save