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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 6 years ago
parent 462aa443ab
commit ffaea4da9c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -74,16 +74,17 @@ TQString KDevSvnd::sslCertFile()
TQString fileName = KFileDialog::getOpenFileName(TQString(),TQString(),0, i18n("Open SSL certificate file"));
return fileName;
}
TQCString KDevSvnd::sslPasswdDlg(TQString promptMsg)
TQString KDevSvnd::sslPasswdDlg(TQString promptMsg)
{
TQCString passwd;
TQString passwd;
int ret = KPasswordDialog::getPassword( passwd,promptMsg );
if( ret == KPasswordDialog::Accepted ){
TQCString retstr;
TQString retstr;
retstr.setNum(1);
return retstr + passwd;
} else{
TQCString nullstr;
TQString nullstr;
nullstr.setNum(-1);
return nullstr;
}

@ -44,7 +44,7 @@ k_dcop:
TQString commitDialog(TQString);
int sslServerTrustPrompt(TQString certFailMsg, TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert );
TQString sslCertFile();
TQCString sslPasswdDlg(TQString promptMsg);
TQString sslPasswdDlg(TQString promptMsg);
};

Loading…
Cancel
Save