Module: deluge
Branch: master
Commit: 387ea4a9113677b91f5639e025035d4efc9d7566

Author: Damien Churchill <[email protected]>
Date:   Wed Mar 31 17:42:46 2010 +0100

fix when there is only 1 file

---

 deluge/ui/common.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/common.py b/deluge/ui/common.py
index caedef0..42f46a1 100644
--- a/deluge/ui/common.py
+++ b/deluge/ui/common.py
@@ -149,7 +149,14 @@ class TorrentInfo(object):
             self.__m_files_tree = file_tree.get_tree()
         else:
             if filetree == 2:
-                pass
+                self.__m_files_tree = {
+                    self.__m_name: {
+                        "type": "file",
+                        "index": 0,
+                        "length": self.__m_metadata["info"]["length"],
+                        "download": True
+                    }
+                }
             else:
                 self.__m_files_tree = {
                     self.__m_name: (0, self.__m_metadata["info"]["length"], 
True)

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to