only popup file selection if torrent has more than 1 file

This commit is contained in:
Marcos Pinto 2007-11-18 22:20:22 +00:00
parent 61a4842bed
commit b0f991b43c
1 changed files with 1 additions and 1 deletions

View File

@ -1309,7 +1309,7 @@ window, please enter your password"))
try:
dumped_torrent = self.manager.dump_torrent_file_info(torrent)
if self.config.get('enable_files_dialog'):
if (self.config.get('enable_files_dialog')) and (len(dumped_torrent) > 1):
files_dialog = dialogs.FilesDlg(dumped_torrent)
if files_dialog.show(self.window) == 1:
unique_id = self.manager.add_torrent(torrent, path,