Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251returnValue = address.toString();252}254if(returnValue.isEmpty())255{256// If no address entry selected, return rejected257retval = Rejected;258}260QDialog::done(retval);261}263void AddressBookPage::on_exportButton_clicked()264{265// CSV is currently the only supported format266QString filename = GUIUtil::getSaveFileName(this,267tr("Export Address List"), QString(),268/*: Expanded name of the CSV file format.269See: https://en.wikipedia.org/wiki/Comma-separated_values. */270tr("Comma separated file") + QLatin1String(" (*.csv)"), nullptr);272if (filename.isNull())273return;275CSVModelWriter writer(filename);277// name, column, role278writer.setModel(proxyModel);279writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole);280writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole);282if(!writer.write()) {283QMessageBox::critical(this, tr("Exporting Failed"),284/*: An error message. %1 is a stand-in argument for the name285of the file we attempted to save to. */286tr("There was an error trying to save the address list to %1. Please try again.").arg(filename));287}288}290void AddressBookPage::contextualMenu(const QPoint &point)291{292QModelIndex index = ui->tableView->indexAt(point);293if(index.isValid())294{295contextMenu->exec(QCursor::pos());296}297}299void AddressBookPage::selectNewAddress(const QModelIndex &parent, int begin, int /*end*/)300{301QModelIndex idx = proxyModel->mapFromSource(model->index(begin, AddressTableModel::Address, parent));302if(idx.isValid() && (idx.data(Qt::EditRole).toString() == newAddressToSelect))303{304// Select row of newly created address, once305ui->tableView->setFocus();306ui->tableView->selectRow(idx.row());307newAddressToSelect.clear();308}309}311void AddressBookPage::updateWindowsTitleWithWalletName()312{313const QString walletName = this->model->GetWalletDisplayName();315if (mode == ForEditing) {316switch(tab)317{318case SendingTab: setWindowTitle(tr("Sending addresses - %1").arg(walletName)); break;319case ReceivingTab: setWindowTitle(tr("Receiving addresses - %1").arg(walletName)); break;320}321}322}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.