Lines 835-845
Link Here
|
835 |
|
835 |
|
836 |
assert(w); |
836 |
assert(w); |
837 |
|
837 |
|
|
|
838 |
#ifdef HAVE_QGPGME |
838 |
if (w->cipherType() == KWallet::BACKEND_CIPHER_GPG) { |
839 |
if (w->cipherType() == KWallet::BACKEND_CIPHER_GPG) { |
839 |
QString keyID = w->gpgKey().shortKeyID(); |
840 |
QString keyID = w->gpgKey().shortKeyID(); |
840 |
assert(!keyID.isNull()); |
841 |
assert(!keyID.isNull()); |
841 |
KMessageBox::errorWId((WId)wId, i18n("<qt>The <b>%1</b> wallet is encrypted using GPG key <b>%2</b>. Please use <b>GPG</b> tools (such as <b>kleopatra</b>) to change the passphrase associated to that key.</qt>", Qt::escape(wallet), keyID)); |
842 |
KMessageBox::errorWId((WId)wId, i18n("<qt>The <b>%1</b> wallet is encrypted using GPG key <b>%2</b>. Please use <b>GPG</b> tools (such as <b>kleopatra</b>) to change the passphrase associated to that key.</qt>", Qt::escape(wallet), keyID)); |
842 |
} else { |
843 |
} else { |
|
|
844 |
#endif |
843 |
QPointer<KNewPasswordDialog> kpd = new KNewPasswordDialog(); |
845 |
QPointer<KNewPasswordDialog> kpd = new KNewPasswordDialog(); |
844 |
kpd->setPrompt(i18n("<qt>Please choose a new password for the wallet '<b>%1</b>'.</qt>", Qt::escape(wallet))); |
846 |
kpd->setPrompt(i18n("<qt>Please choose a new password for the wallet '<b>%1</b>'.</qt>", Qt::escape(wallet))); |
845 |
kpd->setCaption(i18n("KDE Wallet Service")); |
847 |
kpd->setCaption(i18n("KDE Wallet Service")); |
Lines 864-870
Link Here
|
864 |
} |
866 |
} |
865 |
|
867 |
|
866 |
delete kpd; |
868 |
delete kpd; |
|
|
869 |
#ifdef HAVE_QGPGME |
867 |
} |
870 |
} |
|
|
871 |
#endif |
868 |
|
872 |
|
869 |
if (reclose) { |
873 |
if (reclose) { |
870 |
internalClose(w, handle, true); |
874 |
internalClose(w, handle, true); |