diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-08-29 14:32:03 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-08-29 14:32:03 +0000 |
commit | ffa969824b148a1c12d32302d14ed46915425d64 (patch) | |
tree | 56f648fc65ed61119fb74b66dd584968331aa3e4 | |
parent | reverted last change (diff) | |
download | gpg4usb-ffa969824b148a1c12d32302d14ed46915425d64.tar.gz gpg4usb-ffa969824b148a1c12d32302d14ed46915425d64.zip |
renamed variables for readability
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@376 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | context.cpp | 14 |
1 files 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 += "<i>Wrong password.</i><br><br>\n\n"; + passwordDialogMessage += "<i>Wrong password.</i><br><br>\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 += "<b>Enter Password for</b><br>\n" + gpg_hint + "\n"; + gpgHint.remove(0, gpgHint.indexOf(" ")); + passwordDialogMessage += "<b>Enter Password for</b><br>\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(); |