mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Fixed a crash when trying to change sort order from an invisible column
This commit is contained in:
parent
c554bf9edd
commit
246a8409bf
@ -1239,6 +1239,7 @@ class AllTorrents(BaseMode, component.Component):
|
||||
pass
|
||||
|
||||
i = max(0, i)
|
||||
i = min(len(self.__cols_to_show) - 1, i)
|
||||
|
||||
self.config["sort_primary"] = self.__cols_to_show[i]
|
||||
self.config.save()
|
||||
@ -1254,6 +1255,7 @@ class AllTorrents(BaseMode, component.Component):
|
||||
pass
|
||||
|
||||
i = min(len(self.__cols_to_show) - 1, i)
|
||||
i = max(0, i)
|
||||
|
||||
self.config["sort_primary"] = self.__cols_to_show[i]
|
||||
self.config.save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user