diff options
| author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-03-05 22:42:48 +0100 |
|---|---|---|
| committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-03-05 22:42:48 +0100 |
| commit | 5a3f6d5e0046e2e4995b5abaff6383d423c1fc0e (patch) | |
| tree | 16c03766c62deeb8e6e0107b9c65fcd3bb7141a4 | |
| parent | removed some qdebugs (diff) | |
| download | gpg4usb-5a3f6d5e0046e2e4995b5abaff6383d423c1fc0e.tar.gz gpg4usb-5a3f6d5e0046e2e4995b5abaff6383d423c1fc0e.zip | |
show password dialog in middle of app window
git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.2@843 34ebc366-c3a9-4b3c-9f84-69acf7962910
| -rw-r--r-- | gpgcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpgcontext.cpp b/gpgcontext.cpp index 52d493d..3762e58 100644 --- a/gpgcontext.cpp +++ b/gpgcontext.cpp @@ -485,9 +485,9 @@ gpgme_error_t GpgContext::passphrase(const char *uid_hint, } if (mPasswordCache.isEmpty()) { - QString password = QInputDialog::getText(0, tr("Enter Password"), + QString password = QInputDialog::getText(QApplication::activeWindow(), tr("Enter Password"), passwordDialogMessage, QLineEdit::Password, - "", &result, Qt::Window); + "", &result); if (result) mPasswordCache = password.toAscii(); } else { |
