qml: fix incorrect index when deleting wallet
QEWalletListModel.remove_wallet was calling beginRemoveRows with i instead of remove as index, causing it to not delete the wallet from the list and the wallet list becoming broken after deleting a wallet.
This commit is contained in:
@@ -98,7 +98,7 @@ class QEWalletListModel(QAbstractListModel):
|
||||
i += 1
|
||||
|
||||
if remove >= 0:
|
||||
self.beginRemoveRows(QModelIndex(), i, i)
|
||||
self.beginRemoveRows(QModelIndex(), remove, remove)
|
||||
self._wallets = wallets
|
||||
self.endRemoveRows()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user