From ffa969824b148a1c12d32302d14ed46915425d64 Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 29 Aug 2010 14:32:03 +0000 Subject: renamed variables for readability git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@376 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- context.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/context.cpp b/context.cpp index 614a7ad..5a9cb67 100644 --- a/context.cpp +++ b/context.cpp @@ -378,25 +378,25 @@ gpgme_error_t Context::passphrase(const char *uid_hint, int last_was_bad, int fd) { gpgme_error_t returnValue = GPG_ERR_CANCELED; - QString s; - QString gpg_hint = uid_hint; + QString passwordDialogMessage; + QString gpgHint = uid_hint; bool result; if (last_was_bad) { - s += "Wrong password.

\n\n"; + passwordDialogMessage += "Wrong password.

\n\n"; clearPasswordCache(); } /** if uid provided */ - if (!gpg_hint.isEmpty()) { + if (!gpgHint.isEmpty()) { // remove UID, leave only username & email - gpg_hint.remove(0, gpg_hint.indexOf(" ")); - s += "Enter Password for
\n" + gpg_hint + "\n"; + gpgHint.remove(0, gpgHint.indexOf(" ")); + passwordDialogMessage += "Enter Password for
\n" + gpgHint + "\n"; } if (mPasswordCache.isEmpty()) { QString password = QInputDialog::getText(0, "Enter Password", - s, QLineEdit::Password, + passwordDialogMessage, QLineEdit::Password, "", &result, Qt::Window); if (result) mPasswordCache = password.toAscii(); -- cgit v1.2.3