chore(wallet): Fix crash on changing networks (#13952)

This commit is contained in:
Cuteivist 2024-03-13 14:19:03 +01:00 committed by GitHub
parent b936a5f323
commit 8f2d023702
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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.}