Fix adding torrent to session

This commit is contained in:
Andrew Resch 2008-10-23 13:35:17 +00:00
parent a2b2ce2ca5
commit dbcf1e622a
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ class CreateTorrentDialog:
httpseeds=httpseeds)
self.glade.get_widget("progress_dialog").hide_all()
if add_to_session:
client.add_torrent_files([target])
client.add_torrent_file([target])
def _on_create_torrent_progress(self, value, num_pieces):
percent = float(value)/float(num_pieces)