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.} =
|
proc getDefaultAccount*(self: WalletView): string {.slot.} =
|
||||||
return self.defaultAccount
|
return self.defaultAccount
|
||||||
|
|
||||||
proc rowCount(self: WalletView, index: QModelIndex = nil): int =
|
method rowCount(self: WalletView, index: QModelIndex = nil): int =
|
||||||
return self.assets.len
|
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:
|
if not index.isValid:
|
||||||
return
|
return
|
||||||
if index.row < 0 or index.row >= self.assets.len:
|
if index.row < 0 or index.row >= self.assets.len:
|
||||||
|
|
Loading…
Reference in New Issue