fix libtorrent 1.0.0 compatibility wrt. proxy settings

This commit is contained in:
Kai Huuhko 2014-07-18 05:50:06 +03:00
parent f511e4b3ec
commit bf94bf347d
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ class ProxyGroup(Frame):
l = Label(self, text="Proxy type", size_hint_align=ALIGN_LEFT)
l.show()
ptype = Hoversel(parent, size_hint_align=FILL_HORIZ)
ptype.text = ps.type.name
ptype.text = str(lt.proxy_type.values[ps.type])
for n in lt.proxy_type.names.keys():
ptype.item_add(n, callback=lambda x, y, z=n: ptype.text_set(z))
ptype.show()