1
0

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:
f321x
2025-12-17 16:58:25 +01:00
parent aee0f8fb54
commit 6bb8afebe5

View File

@@ -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()