Fix bug in QAbstractItemModel.rowCount()

This commit is contained in:
Simon Edwards 2021-08-14 21:19:58 +02:00
parent b5a9f30d34
commit 3a83a7fe62

View File

@ -37,7 +37,7 @@ export class QAbstractItemModel extends NodeObject<any> {
case 'rowCount':
try {
return this.columnCount(new QModelIndex(args[0]));
return this.rowCount(new QModelIndex(args[0]));
} catch (e) {
console.log(`An exception was thrown while dispatching to method 'rowCount':`);
console.log(e);