Skip to content

Commit

Permalink
Merge commit 'ad055fbaea200bed30ee09887ff9b7291e51153e'
Browse files Browse the repository at this point in the history
# Conflicts:
#	source/class/qxl/datagrid/binding/Bindings.js
  • Loading branch information
johnspackman committed Jan 23, 2024
2 parents c9a59ba + ad055fb commit ccca285
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/class/qxl/datagrid/ui/SelectionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ qx.Class.define("qxl.datagrid.ui.SelectionManager", {
* items contains more than one elements.
*/
setSelection(items) {
if (qx.core.Environment.get("qx.debug")) {
const dataSource = this.getDataSource();
items.forEach(item => {
this.assertNotNull(dataSource.getPositionOfModel(item), "Failed to set selection. The item " + item + " is not found in the DataGrid!");
});
}
if (items instanceof qx.data.Array) {
items = items.toArray();
}
Expand Down

0 comments on commit ccca285

Please sign in to comment.