android: fix protocols dialog

This commit is contained in:
ThomasV 2015-02-25 17:25:22 +01:00
parent 761871b900
commit 8d95b9c980
1 changed files with 2 additions and 5 deletions

View File

@ -104,11 +104,8 @@ def protocol_name(p):
def protocol_dialog(host, protocol, z):
droid.dialogCreateAlert('Protocol',host)
if z:
protocols = z.keys()
else:
protocols = 'ts'
droid.dialogCreateAlert('Protocol', host)
protocols = filter(lambda x: x in "ts", z.keys())
l = []
current = protocols.index(protocol)
for p in protocols: