mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Fix error when requesting a tracker icon for None
This commit is contained in:
parent
bc028998d7
commit
c4b20aa595
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
host = model[row][data]
|
||||||
|
if host:
|
||||||
d = component.get("TrackerIcons").get(model[row][data])
|
d = component.get("TrackerIcons").get(model[row][data])
|
||||||
d.addCallback(on_get_icon)
|
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…
Add table
Add a link
Reference in a new issue