From 5a3f6d5e0046e2e4995b5abaff6383d423c1fc0e Mon Sep 17 00:00:00 2001 From: nils Date: Mon, 5 Mar 2012 21:42:48 +0000 Subject: 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 --- gpgcontext.cpp | 4 ++-- 1 file 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 { -- cgit v1.2.3