summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-01 16:04:55 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-01 16:04:55 +0100
commitc1c33b0dfdd9c7932a1099f1d632bfaaa49a6501 (patch)
tree0cdce02e0e52d4e9ad4cc903658f835e32101496
parent97f0949276dc17cb2aac7b00c2d646fc0c7c7876 (diff)
downloadtdesdk-c1c33b0dfdd9c7932a1099f1d632bfaaa49a6501.tar.gz
tdesdk-c1c33b0dfdd9c7932a1099f1d632bfaaa49a6501.zip
Adapted to new KPasswordEdit::password() signature.
This relates to bug 2961. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--cervisia/cvsservice/cvsaskpass.cpp2
-rw-r--r--cervisia/cvsservice/cvsloginjob.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/cervisia/cvsservice/cvsaskpass.cpp b/cervisia/cvsservice/cvsaskpass.cpp
index 810c906c..dbe80fe8 100644
--- a/cervisia/cvsservice/cvsaskpass.cpp
+++ b/cervisia/cvsservice/cvsaskpass.cpp
@@ -69,7 +69,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char** argv)
int res = dlg.exec();
if( res == KPasswordDialog::Accepted )
{
- std::cout << dlg.password() << std::endl;
+ std::cout << dlg.password().local8Bit() << std::endl;
return 0;
}
diff --git a/cervisia/cvsservice/cvsloginjob.cpp b/cervisia/cvsservice/cvsloginjob.cpp
index 5eb1d9fc..1c46b7de 100644
--- a/cervisia/cvsservice/cvsloginjob.cpp
+++ b/cervisia/cvsservice/cvsloginjob.cpp
@@ -113,14 +113,14 @@ bool CvsLoginJob::execute()
// TODO: We really should display the repository name. Unfortunately
// the dialog doesn't show part of the repository name, because
// it's too long. :-(
- TQCString password;
+ TQString password;
int res = KPasswordDialog::getPassword(password, i18n("Please type "
"in your password for the repository below."));
if( res == KPasswordDialog::Accepted )
{
// send password to process
m_Proc->WaitSlave();
- m_Proc->writeLine(password);
+ m_Proc->writeLine(password.local8Bit());
// wait for the result
while( !line.contains(FAILURE_PHRASE) )