Skip to content

Commit

Permalink
Fix address book selected model record when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrossignol committed Jul 31, 2021
1 parent 5815058 commit 39dde45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qt/addressbookpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ void AddressBookPage::onEditAction()
tab == SendingTab ?
EditAddressDialog::EditSendingAddress :
EditAddressDialog::EditReceivingAddress);

QModelIndex origIndex = filterProxyModel->mapToSource(indexes.at(0));
origIndex = proxyModel->mapToSource(origIndex);

dlg.setModel(model);
QModelIndex origIndex = proxyModel->mapToSource(indexes.at(0));
dlg.loadRow(origIndex.row());
dlg.exec();
}
Expand Down

0 comments on commit 39dde45

Please sign in to comment.