a working multi delete in libraries

This commit is contained in:
Chris Cochrun 2023-03-05 06:51:47 -06:00
parent 8eeb3b5151
commit 6c33e52ea3
10 changed files with 51 additions and 14 deletions

View file

@ -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);
}
}
}