diff --git a/retroshare-gui/src/gui/GenCertDialog.cpp b/retroshare-gui/src/gui/GenCertDialog.cpp index fc0e187b2..18c50b2ef 100644 --- a/retroshare-gui/src/gui/GenCertDialog.cpp +++ b/retroshare-gui/src/gui/GenCertDialog.cpp @@ -24,6 +24,7 @@ #include "GenCertDialog.h" #include "InfoDialog.h" #include "gui/settings/rsharesettings.h" +#include #include #include #include @@ -177,7 +178,7 @@ void GenCertDialog::genPerson() } //generate a new gpg key std::string err_string; - ui.no_gpg_key_label->setText(tr("Generating new GPG key, please be patient. Fill in your GPG password when asked.")); + ui.no_gpg_key_label->setText(tr("Generating new GPG key, please be patient: this process needs generating large prime numbers, and can take some minutes on slow computers. \n\nFill in your GPG password when asked, to sign your new key.")); ui.no_gpg_key_label->show(); // QMovie *movie = new QMovie(":/images/loader/progress.gif"); // ui.progress_label->setMovie(movie); @@ -197,12 +198,19 @@ void GenCertDialog::genPerson() ui.infopushButton->hide(); ui.genButton->hide(); ui.label_location2->hide(); - QMessageBox::StandardButton info = QMessageBox::information( NULL, - "Generating GPG key", - "This process can take some time, please be patient after pressing the OK button", - QMessageBox::Ok); +// QMessageBox::StandardButton info = QMessageBox::information( NULL, +// "Generating GPG key", +// "This process can take some time (approximately one minute), please be patient after pressing the OK button", +// QMessageBox::Ok); //info-> + setCursor(Qt::WaitCursor) ; + + QCoreApplication::processEvents(); + while(QAbstractEventDispatcher::instance()->processEvents(QEventLoop::AllEvents)) ; + RsInit::GeneratePGPCertificate(ui.name_input->text().toStdString(), ui.email_input->text().toStdString(), ui.password_input->text().toStdString(), PGPId, err_string); + + setCursor(Qt::ArrowCursor) ; } diff --git a/retroshare-gui/src/gui/GenCertDialog.ui b/retroshare-gui/src/gui/GenCertDialog.ui index 1f44cfa0e..091d7a01c 100644 --- a/retroshare-gui/src/gui/GenCertDialog.ui +++ b/retroshare-gui/src/gui/GenCertDialog.ui @@ -7,7 +7,7 @@ 0 0 569 - 493 + 603 @@ -689,7 +689,11 @@ border: 1px solid #CCCCCC;} - + + + Enter here your nickname + + @@ -699,7 +703,13 @@ border: 1px solid #CCCCCC;} - + + + Be careful: this email will be visible to your friends and friends +of your friends. This information is required by GPG, but to stay +anonymous, you can use a fake email. + + @@ -710,6 +720,9 @@ border: 1px solid #CCCCCC;} + + Put a strong password here. This password protects your GPG key. +