Adapted to new KPasswordEdit::password() signature.

This relates to bug 2961.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent 97f0949276
commit c1c33b0dfd
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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;
}

@ -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) )

Loading…
Cancel
Save