mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Fix preference page index when removing a preference page
This commit is contained in:
parent
dc7ed11601
commit
c7954c20eb
1 changed files with 4 additions and 0 deletions
|
@ -173,6 +173,10 @@ class Preferences(component.Component):
|
||||||
if self.iter_to_remove != None:
|
if self.iter_to_remove != None:
|
||||||
self.liststore.remove(self.iter_to_remove)
|
self.liststore.remove(self.iter_to_remove)
|
||||||
|
|
||||||
|
# We need to re-adjust the index values for the remaining pages
|
||||||
|
for i, (index, name) in enumerate(self.liststore):
|
||||||
|
self.liststore[i][0] = i
|
||||||
|
|
||||||
def show(self, page=None):
|
def show(self, page=None):
|
||||||
"""Page should be the string in the left list.. ie, 'Network' or
|
"""Page should be the string in the left list.. ie, 'Network' or
|
||||||
'Bandwidth'"""
|
'Bandwidth'"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue