diff --git a/src/lib/QtCore/QAbstractItemModel.ts b/src/lib/QtCore/QAbstractItemModel.ts index 5c046f722..fed614d30 100644 --- a/src/lib/QtCore/QAbstractItemModel.ts +++ b/src/lib/QtCore/QAbstractItemModel.ts @@ -37,7 +37,7 @@ export class QAbstractItemModel extends NodeObject { 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);