mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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
|
state = None
|
||||||
|
|
||||||
try:
|
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_file = open(os.path.join(config_location, filename), "rb")
|
||||||
state = cPickle.load(state_file)
|
state = cPickle.load(state_file)
|
||||||
state_file.close()
|
state_file.close()
|
||||||
|
@ -182,7 +182,7 @@ class PeersTab(Tab):
|
||||||
if state == None:
|
if state == None:
|
||||||
return
|
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..")
|
log.warning("peers_tab.state is not compatible! rejecting..")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue