mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
qt, refactor: Keep EditAddressDialog in the main event loop
This commit is contained in:
@@ -182,14 +182,14 @@ void AddressBookPage::onEditAction()
|
||||
if(indexes.isEmpty())
|
||||
return;
|
||||
|
||||
EditAddressDialog dlg(
|
||||
auto dlg = new EditAddressDialog(
|
||||
tab == SendingTab ?
|
||||
EditAddressDialog::EditSendingAddress :
|
||||
EditAddressDialog::EditReceivingAddress, this);
|
||||
dlg.setModel(model);
|
||||
dlg->setModel(model);
|
||||
QModelIndex origIndex = proxyModel->mapToSource(indexes.at(0));
|
||||
dlg.loadRow(origIndex.row());
|
||||
dlg.exec();
|
||||
dlg->loadRow(origIndex.row());
|
||||
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
|
||||
}
|
||||
|
||||
void AddressBookPage::on_newAddress_clicked()
|
||||
|
||||
Reference in New Issue
Block a user