From ac5c6389d3b91627c1e995792b21aca0003ab227 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 22 May 2020 19:00:21 -0400 Subject: [PATCH] revert change to rowCount and Data methods --- src/app/wallet/walletView.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/wallet/walletView.nim b/src/app/wallet/walletView.nim index 2aa2f2d2aa..fa2fe74fd9 100644 --- a/src/app/wallet/walletView.nim +++ b/src/app/wallet/walletView.nim @@ -49,10 +49,10 @@ QtObject: proc getDefaultAccount*(self: WalletView): string {.slot.} = return self.defaultAccount - proc rowCount(self: WalletView, index: QModelIndex = nil): int = + method rowCount(self: WalletView, index: QModelIndex = nil): int = return self.assets.len - proc data(self: WalletView, index: QModelIndex, role: int): QVariant = + method data(self: WalletView, index: QModelIndex, role: int): QVariant = if not index.isValid: return if index.row < 0 or index.row >= self.assets.len: