mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 14:26:24 +00:00
Fix sorting in TorrentView.
This commit is contained in:
parent
4a8f2c46f2
commit
7522ecf719
@ -170,9 +170,10 @@ class TorrentView(listview.ListView, component.Component):
|
|||||||
self.filter = (None, None)
|
self.filter = (None, None)
|
||||||
|
|
||||||
# Set the liststore filter column
|
# Set the liststore filter column
|
||||||
self.model_filter = self.liststore.filter_new()
|
model_filter = self.liststore.filter_new()
|
||||||
self.model_filter.set_visible_column(
|
model_filter.set_visible_column(
|
||||||
self.columns["filter"].column_indices[0])
|
self.columns["filter"].column_indices[0])
|
||||||
|
self.model_filter = gtk.TreeModelSort(model_filter)
|
||||||
self.treeview.set_model(self.model_filter)
|
self.treeview.set_model(self.model_filter)
|
||||||
|
|
||||||
### Connect Signals ###
|
### Connect Signals ###
|
||||||
@ -192,7 +193,7 @@ class TorrentView(listview.ListView, component.Component):
|
|||||||
session_state = client.get_session_state()
|
session_state = client.get_session_state()
|
||||||
for torrent_id in session_state:
|
for torrent_id in session_state:
|
||||||
self.add_row(torrent_id)
|
self.add_row(torrent_id)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
"""Stops the torrentview"""
|
"""Stops the torrentview"""
|
||||||
# We need to clear the liststore
|
# We need to clear the liststore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user