From ec259d1e7d621683a6bcbb3e284c3cf7a50157c9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 3 Dec 2018 22:42:47 +0900 Subject: Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.git Signed-off-by: Michele Calgaro --- src/importcertificatedialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/importcertificatedialog.cpp') diff --git a/src/importcertificatedialog.cpp b/src/importcertificatedialog.cpp index 5cc77ab..f75ffb4 100644 --- a/src/importcertificatedialog.cpp +++ b/src/importcertificatedialog.cpp @@ -259,7 +259,7 @@ void ImportCertificateDialog::accept() } if ( importOk ) { - if ( TQString ( main->PrivateKeyPasswordEdit->password() ) != TQString ( main->PrivateKeyAgainPasswordEdit->password() ) ) + if ( main->PrivateKeyPasswordEdit->password() != main->PrivateKeyAgainPasswordEdit->password() ) { importOk = false; KMessageBox::sorry ( 0, i18n ( "Private key passwords does not match!" ), i18n ( "Passwords Do Not Match" ) ); @@ -268,7 +268,7 @@ void ImportCertificateDialog::accept() } else { - privatekeypassword= TQString ( main->PrivateKeyAgainPasswordEdit->password() ); + privatekeypassword = main->PrivateKeyAgainPasswordEdit->password(); } } } @@ -291,7 +291,7 @@ void ImportCertificateDialog::accept() } if ( importOk ) { - if ( main->UsePrivateKeyPasswordCheckBox->isChecked() && (TQString ( main->PrivateKeyPasswordEdit->password() ) != TQString ( main->PrivateKeyAgainPasswordEdit->password() ) )) + if ( main->UsePrivateKeyPasswordCheckBox->isChecked() && (main->PrivateKeyPasswordEdit->password() != main->PrivateKeyAgainPasswordEdit->password() )) { importOk = false; KMessageBox::sorry ( 0, i18n ( "Certificate passwords does not match!" ), i18n ( "Passwords Do Not Match" ) ); @@ -301,7 +301,7 @@ void ImportCertificateDialog::accept() else { if (main->UsePrivateKeyPasswordCheckBox->isChecked() ) - privatekeypassword= TQString ( main->PrivateKeyAgainPasswordEdit->password() ); + privatekeypassword = main->PrivateKeyAgainPasswordEdit->password(); } } } @@ -509,8 +509,8 @@ void ImportCertificateDialog::accept() ImportProcess->writeToStdin ( main->ImportPasswordEdit->text() +"\n"); if (main->UsePrivateKeyPasswordCheckBox->isChecked() ) { - ImportProcess->writeToStdin ( TQString ( main->PrivateKeyPasswordEdit->password() ) + "\n" ); - ImportProcess->writeToStdin ( TQString ( main->PrivateKeyPasswordEdit->password() ) + "\n" ); + ImportProcess->writeToStdin ( main->PrivateKeyPasswordEdit->password() + "\n" ); + ImportProcess->writeToStdin ( main->PrivateKeyPasswordEdit->password() + "\n" ); } } } @@ -1054,7 +1054,7 @@ void ImportCertificateDialog::readFromStdout_import() { if ( GlobalConfig->KvpncDebugLevel > 0 ) GlobalConfig->appendLogEntry ( i18n ( "Certificate import: %1 was requested, send it..." ).arg ( i18n ( "certificate password" ) ),GlobalConfig->debug ); - ImportProcess->writeToStdin ( TQString ( main->PrivateKeyPasswordEdit->password() ) + "\n" ); + ImportProcess->writeToStdin ( main->PrivateKeyPasswordEdit->password() + "\n" ); } if ( line.find ( "Success: certificate imported from path:", 0, FALSE ) > -1 ) -- cgit v1.2.1