chore(wallet): Fix crash on changing networks (#13952)
This commit is contained in:
parent
b936a5f323
commit
8f2d023702
|
@ -27,6 +27,8 @@ QtObject:
|
|||
result.index = index
|
||||
|
||||
method rowCount(self: BalancesModel, index: QModelIndex = nil): int =
|
||||
if self.index < 0 or self.index >= self.delegate.getGroupedAccountsAssetsList().len:
|
||||
return 0
|
||||
return self.delegate.getGroupedAccountsAssetsList()[self.index].balancesPerAccount.len
|
||||
|
||||
proc countChanged(self: BalancesModel) {.signal.}
|
||||
|
|
Loading…
Reference in New Issue