adjusting deleting funcitons

This commit is contained in:
Chris Cochrun 2023-03-02 21:44:13 -06:00
parent 24243602ca
commit 37dc24ee65
2 changed files with 30 additions and 6 deletions

View file

@ -72,7 +72,9 @@ Item {
newItemFunction: (function() {
videoProxyModel.setFilterRegularExpression("");
})
deleteItemFunction: videoProxyModel.deleteVideo(index)
deleteItemFunction: (function(index) {
videoProxyModel.deleteVideo(index)
})
}
@ -95,7 +97,9 @@ Item {
newItemFunction: (function() {
imageProxyModel.setFilterRegularExpression("");
})
deleteItemFunction: imageProxyModel.deleteImage(index)
deleteItemFunction: (function(index) {
imageProxyModel.deleteImage(index)
})
}
@ -118,7 +122,9 @@ Item {
newItemFunction: (function() {
presProxyModel.setFilterRegularExpression("");
})
deleteItemFunction: presProxyModel.deletePresentation(index)
deleteItemFunction: (function(index) {
presProxyModel.deletePresentation(index)
})
}