mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Fix peers tab state loading
This commit is contained in:
parent
fdfe2ac1ff
commit
2a510c8310
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ class PeersTab(Tab):
|
|||
state = None
|
||||
|
||||
try:
|
||||
log.debug("Loading FilesTab state file: %s", filename)
|
||||
log.debug("Loading PeersTab state file: %s", filename)
|
||||
state_file = open(os.path.join(config_location, filename), "rb")
|
||||
state = cPickle.load(state_file)
|
||||
state_file.close()
|
||||
|
@ -182,7 +182,7 @@ class PeersTab(Tab):
|
|||
if state == None:
|
||||
return
|
||||
|
||||
if len(state) != self.listview.get_columns():
|
||||
if len(state) != len(self.listview.get_columns()):
|
||||
log.warning("peers_tab.state is not compatible! rejecting..")
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue