Changeset f168f7


Ignore:
Timestamp:
01/04/2009 08:47:26 AM (16 years ago)
Author:
Andrew Resch <andrewresch@gmail.com>
Children:
7226cbb
Parents:
923cfa
Message:

Fix seeding torrents from moving around when sorting the '#' column

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r923cfa rf168f7  
    55 GtkUI:
    66  * Fix folder renaming to display the change properly
     7  * Fix seeding torrents from moving around when sorting the '#' column
    78
    89 Plugins:
  • deluge/ui/gtkui/listview.py

    r923cfa rf168f7  
    162162        must be called after listview.create_new_liststore
    163163        """
    164         sort_column = None
    165         if self.model_filter:
    166             # Save the liststore filter column
    167             sort_column = self.model_filter.get_sort_column_id()
    168164        model_filter = self.liststore.filter_new()
    169165        model_filter.set_visible_column(
     
    172168        self.set_sort_functions()
    173169        self.treeview.set_model(self.model_filter)
    174         if sort_column and sort_column != (None, None):
    175             self.model_filter.set_sort_column_id(*sort_column)
    176170
    177171    def set_sort_functions(self):
    178172        for column in self.columns.values():
    179173            if column.sort_func:
    180                 log.debug("sort_func: %s sort_id: %s", column.sort_func, column.sort_id)
    181174                self.model_filter.set_sort_func(
    182175                    column.sort_id,
  • deluge/ui/gtkui/torrentview.py

    r923cfa rf168f7  
    280280                row[filter_column] = False
    281281            else:
     282                row[filter_column] = True
    282283                if torrent_id in self.prev_status and status[torrent_id] == self.prev_status[torrent_id]:
    283284                    # The status dict is the same, so do not update
    284285                    continue
    285                 row[filter_column] = True
     286
    286287                # Set values for each column in the row
    287288                for column in self.columns_to_update:
Note: See TracChangeset for help on using the changeset viewer.