[kde-doc-english] [trojita] src/Gui: GUI: include server name and the "IMAP" thing in the password prompt

Jan Kundrát jkt at flaska.net
Mon Dec 31 18:41:15 UTC 2012


Git commit 72b1931ae96fe0f7511ce4847a9082e5214680ba by Jan Kundrát.
Committed on 31/12/2012 at 19:33.
Pushed by jkt into branch 'master'.

GUI: include server name and the "IMAP" thing in the password prompt

fixes #591

M  +3    -2    src/Gui/Window.cpp

http://commits.kde.org/trojita/72b1931ae96fe0f7511ce4847a9082e5214680ba

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index 9055927..e9ddbd3 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -865,8 +865,9 @@ void MainWindow::authenticationRequested()
     QString pass = s.value(Common::SettingsNames::imapPassKey).toString();
     if (m_ignoreStoredPassword || pass.isEmpty()) {
         bool ok;
-        pass = QInputDialog::getText(this, tr("Password"),
-                                     tr("Please provide password for %1").arg(user),
+        pass = QInputDialog::getText(this, tr("IMAP Password"),
+                                     tr("Please provide password for %1 on %2:").arg(
+                                         user, QSettings().value(Common::SettingsNames::imapHostKey).toString()),
                                      QLineEdit::Password, QString::null, &ok);
         if (ok) {
             model->setImapUser(user);


More information about the kde-doc-english mailing list