diff --git a/libretroshare/src/pqi/authgpg.cc b/libretroshare/src/pqi/authgpg.cc index 61cb7886e..34869999d 100644 --- a/libretroshare/src/pqi/authgpg.cc +++ b/libretroshare/src/pqi/authgpg.cc @@ -92,7 +92,7 @@ std::string pgp_pwd_callback(void * /*hook*/, const char *uid_hint, const char * fprintf(stderr, "pgp_pwd_callback() called.\n"); #endif std::string password; - rsicontrol->getNotify().askForPassword(std::string("Please enter your PGP password for key ")+uid_hint+" :", prev_was_bad, password) ; + rsicontrol->getNotify().askForPassword(std::string("Please enter your PGP password for key:\n ")+uid_hint+" :", prev_was_bad, password) ; return password ; } diff --git a/retroshare-gui/src/gui/notifyqt.cpp b/retroshare-gui/src/gui/notifyqt.cpp index ee98d72c7..448f85d00 100644 --- a/retroshare-gui/src/gui/notifyqt.cpp +++ b/retroshare-gui/src/gui/notifyqt.cpp @@ -254,8 +254,7 @@ bool NotifyQt::askForPassword(const std::string& key_details, bool prev_is_bad, QInputDialog dialog; dialog.setWindowTitle(tr("PGP key passphrase")); - dialog.setLabelText((prev_is_bad?tr("Wrong password !") + "\n\n" : QString()) + - tr("Please enter the password to unlock your PGP key:") + "\n" + QString::fromUtf8(key_details.c_str())); + dialog.setLabelText((prev_is_bad?tr("Wrong password !") + "\n\n" : QString()) + QString::fromUtf8(key_details.c_str())); dialog.setTextEchoMode(QLineEdit::Password); dialog.setWindowIcon(QIcon(":/images/rstray3.png")); dialog.setModal(true);