Fix one more possible issue with regard to #1786

This commit is contained in:
Pedro Algarvio 2011-04-22 11:42:48 +01:00
parent 49d5ed6bde
commit 5296fc7d4c
1 changed files with 7 additions and 1 deletions

View File

@ -627,7 +627,13 @@ class ListView:
# Column is not visible, no need to reposition
continue
try:
column_at_position = columns[col_state.position]
except IndexError:
# While updating the multiuser branch, which adds a new column
# an IndexError was raised, just continue processing, once
# deluge is restarted, it all should be good
continue
if col_state.name == column_at_position.get_title():
# It's in the right position
continue