a working multi delete in libraries
This commit is contained in:
parent
8eeb3b5151
commit
6c33e52ea3
10 changed files with 51 additions and 14 deletions
|
@ -360,13 +360,9 @@ ColumnLayout {
|
|||
var selection = [];
|
||||
var length = selectionModel.selectedIndexes.length;
|
||||
for (let i = 0; i < length; i++) {
|
||||
selection.push(selectionModel.selectedIndexes[i]);
|
||||
console.log(selection[i].row);
|
||||
/* root.deleteItemFunction(selection[i].row); */
|
||||
}
|
||||
for (let i = 0; i < length; i++) {
|
||||
root.deleteItemFunction(selection[i].row);
|
||||
selection.push(selectionModel.selectedIndexes[i].row);
|
||||
}
|
||||
root.deleteItemFunction(selection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue