mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
reset the torrents object upon a disconnect so there aren't any errors when reconnecting
This commit is contained in:
parent
4929ba3c44
commit
21431f18e1
1 changed files with 4 additions and 0 deletions
|
@ -248,6 +248,9 @@ Copyright:
|
||||||
return this.getSelectionModel().getSelected();
|
return this.getSelectionModel().getSelected();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the currently selected records.
|
||||||
|
*/
|
||||||
getSelections: function() {
|
getSelections: function() {
|
||||||
return this.getSelectionModel().getSelections();
|
return this.getSelectionModel().getSelections();
|
||||||
},
|
},
|
||||||
|
@ -294,6 +297,7 @@ Copyright:
|
||||||
// private
|
// private
|
||||||
onDisconnect: function() {
|
onDisconnect: function() {
|
||||||
this.getStore().removeAll();
|
this.getStore().removeAll();
|
||||||
|
this.torrents = {};
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue