mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix #1075 (changing priority on a whole folder)
This commit is contained in:
parent
361f2b2390
commit
07cd4ba83d
3 changed files with 13 additions and 4 deletions
|
@ -11,6 +11,7 @@
|
||||||
* Fix enabling plugins.
|
* Fix enabling plugins.
|
||||||
* Implement installing plugins.
|
* Implement installing plugins.
|
||||||
* Update some icons
|
* Update some icons
|
||||||
|
* Fixed #1075 (changing priority on a whole folder doesn't work)
|
||||||
|
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
* Attempt to register as the default magnet uri handler in GNOME on startup
|
* Attempt to register as the default magnet uri handler in GNOME on startup
|
||||||
|
|
|
@ -132,11 +132,19 @@ Copyright:
|
||||||
indexes[node.attributes.fileIndex] = node.attributes.priority;
|
indexes[node.attributes.fileIndex] = node.attributes.priority;
|
||||||
}
|
}
|
||||||
this.getRootNode().cascade(walk);
|
this.getRootNode().cascade(walk);
|
||||||
|
|
||||||
var nodes = this.getSelectionModel().getSelectedNodes();
|
var nodes = this.getSelectionModel().getSelectedNodes();
|
||||||
Ext.each(nodes, function(node) {
|
Ext.each(nodes, function(node) {
|
||||||
if (Ext.isEmpty(node.attributes.fileIndex)) return;
|
if (!node.isLeaf()) {
|
||||||
indexes[node.attributes.fileIndex] = baseItem.filePriority;
|
function setPriorities(node) {
|
||||||
|
if (Ext.isEmpty(node.attributes.fileIndex)) return;
|
||||||
|
indexes[node.attributes.fileIndex] = baseItem.filePriority;
|
||||||
|
}
|
||||||
|
node.cascade(setPriorities);
|
||||||
|
} else if (!Ext.isEmpty(node.attributes.fileIndex)) {
|
||||||
|
indexes[node.attributes.fileIndex] = baseItem.filePriority;
|
||||||
|
return;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var priorities = new Array(Ext.keys(indexes).length);
|
var priorities = new Array(Ext.keys(indexes).length);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue