mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
fix #1075 (changing priority on a whole folder)
This commit is contained in:
parent
eac2a10a12
commit
8212a66d5a
@ -132,11 +132,19 @@ Copyright:
|
||||
indexes[node.attributes.fileIndex] = node.attributes.priority;
|
||||
}
|
||||
this.getRootNode().cascade(walk);
|
||||
|
||||
|
||||
var nodes = this.getSelectionModel().getSelectedNodes();
|
||||
Ext.each(nodes, function(node) {
|
||||
if (Ext.isEmpty(node.attributes.fileIndex)) return;
|
||||
indexes[node.attributes.fileIndex] = baseItem.filePriority;
|
||||
if (!node.isLeaf()) {
|
||||
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);
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user