summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Algarvio <pedro@algarvio.me>2011-08-03 11:59:42 +0100
committerPedro Algarvio <pedro@algarvio.me>2011-08-03 11:59:42 +0100
commit4fcfb677a49f3ba4ba77a0e43c8eae695f01b5ca (patch)
tree254733f45c87120f1f55853c3cae4a97faef2d8b
parent808ff0213032db4a818de816f0d73571305fa320 (diff)
downloaddeluge-4fcfb677a49f3ba4ba77a0e43c8eae695f01b5ca.tar.gz
deluge-4fcfb677a49f3ba4ba77a0e43c8eae695f01b5ca.tar.bz2
deluge-4fcfb677a49f3ba4ba77a0e43c8eae695f01b5ca.zip
Allow changing ownership even though the owner column is not visible.
-rw-r--r--deluge/ui/gtkui/torrentview.py4
-rw-r--r--deluge/ui/sessionproxy.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py
index f546963cd..d16b7f2d4 100644
--- a/deluge/ui/gtkui/torrentview.py
+++ b/deluge/ui/gtkui/torrentview.py
@@ -411,6 +411,7 @@ class TorrentView(listview.ListView, component.Component):
client.register_event_handler("TorrentQueueChangedEvent", self.on_torrentqueuechanged_event)
self.search_box = SearchBox(self)
+ self.permanent_status_keys = ["owner"]
def start(self):
"""Start the torrentview"""
@@ -497,8 +498,9 @@ class TorrentView(listview.ListView, component.Component):
status_keys.append(field)
self.columns_to_update.append(column)
- # Remove duplicate keys
+ # Remove duplicates
self.columns_to_update = list(set(self.columns_to_update))
+ status_keys = list(set(status_keys + self.permanent_status_keys))
return status_keys
def send_status_request(self, columns=None):
diff --git a/deluge/ui/sessionproxy.py b/deluge/ui/sessionproxy.py
index c6132f543..8840cccce 100644
--- a/deluge/ui/sessionproxy.py
+++ b/deluge/ui/sessionproxy.py
@@ -87,7 +87,7 @@ class SessionProxy(component.Component):
# of a torrent.
inital_keys = [
'queue', 'state', 'name', 'total_wanted', 'progress', 'state',
- 'download_payload_rate', 'upload_payload_rate', 'eta'
+ 'download_payload_rate', 'upload_payload_rate', 'eta', 'owner'
]
self.get_torrents_status({'id': torrent_ids}, inital_keys)
return client.core.get_session_state().addCallback(on_get_session_state)