From 3a83a7fe62bd6afd7601526d136901917858496e Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Sat, 14 Aug 2021 21:19:58 +0200 Subject: [PATCH] Fix bug in `QAbstractItemModel.rowCount()` --- src/lib/QtCore/QAbstractItemModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);