diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fd1cdd6..0e42cdd 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1861,8 +1861,11 @@ void MainWindow::on_givemeZaddr_clicked() bool sapling = true; rpc->createNewZaddr(sapling, [=] (json reply) { QString hushchataddr = QString::fromStdString(reply.get()[0]); - QMessageBox::information(this, "Your new Hushchataddress",hushchataddr); - // ui->listReceiveAddresses->insertItem(0, hushchataddr); - // ui->listReceiveAddresses->setCurrentIndex(0); + QClipboard *zaddr_Clipboard = QApplication::clipboard(); + zaddr_Clipboard ->setText(hushchataddr); + QMessageBox::information(this, "Your new Hushchataddress was copied in your clipboard",hushchataddr); + ui->listReceiveAddresses->insertItem(0, hushchataddr); + ui->listReceiveAddresses->setCurrentIndex(0); + }); }