MCPcopy Create free account
hub / github.com/ElementsProject/elements / onEditAction

Method onEditAction

src/qt/addressbookpage.cpp:174–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void AddressBookPage::onEditAction()
175{
176 if(!model)
177 return;
178
179 if(!ui->tableView->selectionModel())
180 return;
181 QModelIndexList indexes = ui->tableView->selectionModel()->selectedRows();
182 if(indexes.isEmpty())
183 return;
184
185 auto dlg = new EditAddressDialog(
186 tab == SendingTab ?
187 EditAddressDialog::EditSendingAddress :
188 EditAddressDialog::EditReceivingAddress, this);
189 dlg->setModel(model);
190 QModelIndex origIndex = proxyModel->mapToSource(indexes.at(0));
191 dlg->loadRow(origIndex.row());
192 GUIUtil::ShowModalDialogAsynchronously(dlg);
193}
194
195void AddressBookPage::on_newAddress_clicked()
196{

Callers

nothing calls this directly

Calls 3

loadRowMethod · 0.80
setModelMethod · 0.45

Tested by

no test coverage detected