Fix error when requesting a tracker icon for None
This commit is contained in:
parent
bc028998d7
commit
c4b20aa595
@ -100,8 +100,12 @@ def cell_data_trackericon(column, cell, model, row, data):
|
|||||||
if cell.get_property("pixbuf") != icon:
|
if cell.get_property("pixbuf") != icon:
|
||||||
cell.set_property("pixbuf", icon)
|
cell.set_property("pixbuf", icon)
|
||||||
|
|
||||||
d = component.get("TrackerIcons").get(model[row][data])
|
host = model[row][data]
|
||||||
d.addCallback(on_get_icon)
|
if host:
|
||||||
|
d = component.get("TrackerIcons").get(model[row][data])
|
||||||
|
d.addCallback(on_get_icon)
|
||||||
|
else:
|
||||||
|
on_get_icon(None)
|
||||||
|
|
||||||
def cell_data_progress(column, cell, model, row, data):
|
def cell_data_progress(column, cell, model, row, data):
|
||||||
"""Display progress bar with text"""
|
"""Display progress bar with text"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user