mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-30 16:25:35 +00:00
revert change to rowCount and Data methods
This commit is contained in:
parent
9947bae85a
commit
ac5c6389d3
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user