From 391ef3e4c6c32b9acc42955565d4b828b001df4f Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 15 Feb 2017 19:25:46 +0100 Subject: [PATCH] improved passphrase window --- retroshare-gui/src/gui/StartDialog.ui | 6 +++--- retroshare-gui/src/gui/notifyqt.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/StartDialog.ui b/retroshare-gui/src/gui/StartDialog.ui index df48acbe8..ae198d4a7 100644 --- a/retroshare-gui/src/gui/StartDialog.ui +++ b/retroshare-gui/src/gui/StartDialog.ui @@ -6,8 +6,8 @@ 0 0 - 291 - 433 + 430 + 552 @@ -220,7 +220,7 @@ - Name (PGP Id) - location: + Profile - Location diff --git a/retroshare-gui/src/gui/notifyqt.cpp b/retroshare-gui/src/gui/notifyqt.cpp index 9f05f7c44..ec2c7454b 100644 --- a/retroshare-gui/src/gui/notifyqt.cpp +++ b/retroshare-gui/src/gui/notifyqt.cpp @@ -269,7 +269,7 @@ bool NotifyQt::askForPassword(const std::string& title, const std::string& key_d QInputDialog dialog; if (title == "") { - dialog.setWindowTitle(tr("PGP key passphrase")); + dialog.setWindowTitle(tr("Passphrase required")); } else if (title == "AuthSSLimpl::SignX509ReqWithGPG()") { dialog.setWindowTitle(tr("You need to sign your node's certificate.")); } else if (title == "p3IdService::service_CreateGroup()") { @@ -278,7 +278,7 @@ bool NotifyQt::askForPassword(const std::string& title, const std::string& key_d dialog.setWindowTitle(QString::fromStdString(title)); } - dialog.setLabelText((prev_is_bad ? QString("%1\n\n").arg(tr("Wrong password !")) : QString()) + QString("%1:\n\n (%2)\n\n").arg(tr("Please enter your Retroshare password"), QString::fromUtf8(key_details.c_str()))); + dialog.setLabelText((prev_is_bad ? QString("%1\n\n").arg(tr("Wrong password !")) : QString()) + QString("%1
Profile: %2\n").arg(tr("Please enter your Retroshare passphrase"), QString::fromUtf8(key_details.c_str()))); dialog.setTextEchoMode(QLineEdit::Password); dialog.setModal(true);