[GTKUI] Fix call on sessionproxy.get_torrent_status with bad argument

This commit is contained in:
bendikro 2014-03-06 16:17:28 +01:00 committed by Calum Lind
parent 067ca38321
commit 973e2d2ef8
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ class MenuBar(component.Component):
torrent_ids = component.get("TorrentView").get_selected_torrents() torrent_ids = component.get("TorrentView").get_selected_torrents()
if len(torrent_ids) == 1: if len(torrent_ids) == 1:
core_key_global = core_key core_key_global = core_key
d = component.get("SessionProxy").get_torrent_status(torrent_ids[0], {core_key}) d = component.get("SessionProxy").get_torrent_status(torrent_ids[0], [core_key])
else: else:
d = client.core.get_config_values([core_key_global]) d = client.core.get_config_values([core_key_global])
d.addCallback(_on_torrent_status) d.addCallback(_on_torrent_status)