Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 years ago
parent 9af16309a1
commit 698716c1de
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -420,7 +420,7 @@ gpgme_error_t KGpgMe::passphrase(const char* uid_hint,
s += gpg_hint; s += gpg_hint;
if(m_cache.isEmpty()){ if(m_cache.isEmpty()){
TQCString password; TQString password;
if(m_saving) if(m_saving)
result = KPasswordDialog::getNewPassword(password, s); result = KPasswordDialog::getNewPassword(password, s);
@ -434,7 +434,8 @@ gpgme_error_t KGpgMe::passphrase(const char* uid_hint,
result = KPasswordDialog::Accepted; result = KPasswordDialog::Accepted;
if(result == KPasswordDialog::Accepted) { if(result == KPasswordDialog::Accepted) {
write(fd, m_cache.data(), m_cache.length()); TQCString m_cache2 = m_cache.local8Bit();
write(fd, m_cache2.data(), m_cache2.length());
res = 0; res = 0;
} }
write(fd, "\n", 1); write(fd, "\n", 1);

@ -69,7 +69,7 @@ class KGpgMe
TQString m_text; TQString m_text;
bool m_saving; bool m_saving;
bool m_useGnuPGAgent; bool m_useGnuPGAgent;
TQCString m_cache; TQString m_cache;
void init(gpgme_protocol_t proto); void init(gpgme_protocol_t proto);
gpgme_error_t readToBuffer(gpgme_data_t in, TQByteArray* outBuffer) const; gpgme_error_t readToBuffer(gpgme_data_t in, TQByteArray* outBuffer) const;

Loading…
Cancel
Save