Module: deluge
Branch: master
Commit: 255af3c4855a9498bac84c314669e169d1d9d2c5

Author: Nick Lanham <[email protected]>
Date:   Tue Mar  8 00:35:55 2011 +0100

set status fields to get from visible columns

---

 deluge/ui/console/modes/alltorrents.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/deluge/ui/console/modes/alltorrents.py 
b/deluge/ui/console/modes/alltorrents.py
index c24e455..5f29937 100644
--- a/deluge/ui/console/modes/alltorrents.py
+++ b/deluge/ui/console/modes/alltorrents.py
@@ -192,8 +192,6 @@ class AllTorrents(BaseMode, component.Component):
         self.legacy_mode = None
 
         self.__status_dict = {}
-        self.__status_fields = 
["queue","name","total_wanted","state","progress","num_seeds","total_seeds",
-                               
"num_peers","total_peers","download_payload_rate", "upload_payload_rate"]
         self.__torrent_info_id = None
 
         BaseMode.__init__(self, stdscr, encoding)
@@ -246,6 +244,7 @@ class AllTorrents(BaseMode, component.Component):
         self.config = ConfigManager("console.conf",DEFAULT_PREFS)
         self.__cols_to_show = [pref for pref in column_pref_names if 
self.config["show_%s"%pref]]
         self.__columns = [prefs_to_names[col] for col in self.__cols_to_show]
+        self.__status_fields = column.get_required_fields(self.__columns)
         self.__update_columns()
 
     def __split_help(self):

-- 
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