From e39c19f75ea0d9c36cd688e3d5d02fedfbeae205 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Wed, 3 Jun 2020 20:20:46 +0200 Subject: [PATCH] rename copy message --- src/mainwindow.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0e42cdd..54ab804 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -284,9 +284,11 @@ void MainWindow::closeEvent(QCloseEvent* event) { // Let the RPC know to shut down any running service. rpc->shutdownhushd(); + int passphraselenght = this->getPassword().length(); + qDebug()<<"LÄNGE PW : "< 0) { // delete old file before @@ -392,13 +394,13 @@ void MainWindow::encryptWallet() { if (d.exec() == QDialog::Accepted) { - QString str = ed.txtPassword->text(); // data comes from user inputs - int length = str.length(); - this->setPassword(str); + QString passphrase = ed.txtPassword->text(); // data comes from user inputs + int length = passphrase.length(); + this->setPassword(passphrase); char *sequence = NULL; sequence = new char[length+1]; - strncpy(sequence, str.toLocal8Bit(), length +1); + strncpy(sequence, passphrase.toLocal8Bit(), length +1); #define MESSAGE ((const unsigned char *) sequence) #define MESSAGE_LEN length @@ -1863,7 +1865,7 @@ void MainWindow::on_givemeZaddr_clicked() QString hushchataddr = QString::fromStdString(reply.get()[0]); QClipboard *zaddr_Clipboard = QApplication::clipboard(); zaddr_Clipboard ->setText(hushchataddr); - QMessageBox::information(this, "Your new Hushchataddress was copied in your clipboard",hushchataddr); + QMessageBox::information(this, "Your new HushChat address was copied to your clipboard!",hushchataddr); ui->listReceiveAddresses->insertItem(0, hushchataddr); ui->listReceiveAddresses->setCurrentIndex(0);