#2698: Column data indexes corrupted during column removal
---------------------+--------------------
Reporter: Ratanak | Owner:
Type: bug | Status: new
Priority: major | Milestone: 1.3.11
Component: GTK-UI | Version: 1.3.10
Keywords: |
---------------------+--------------------
There is a bug in the ''remove_column'' code. At line 502 of
''listview.py'':
{{{
# Remove from the liststore columns list
for index in column_indices:
del self.liststore_columns[index]
}}}
''column_indices'' is an ascending list of data indexes that a plugin
uses. Normally, if a plugin only registers one status field, it loops once
and there is no side effect. However, if a plugin registers multiple
status fields, deleting indexes in that order will cause the
''liststore_columns'' list to be corrupted because any items after the
deleted index will be shifted down in the list which would change their
indexes as the loop is being executed.
Reversing the order of ''column_indices'' should fix the problem.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2698>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.