Skip to content

Commit

Permalink
Merge pull request #2253 from cyrossignol/gui
Browse files Browse the repository at this point in the history
gui: Fix address book selected model record when editing
  • Loading branch information
jamescowens committed Aug 1, 2021
2 parents 5815058 + 39dde45 commit f37249a
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 f37249a

Please sign in to comment.