summaryrefslogtreecommitdiffstats
path: root/src/secondaryrealmwizard
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-12-02 22:40:32 +0900
committerMichele Calgaro <[email protected]>2018-12-02 22:40:32 +0900
commit0573dbda0afe67a81c27cd0adbccc14d90759b7d (patch)
tree01a6bebc9200153fa860b990d2ea788a46f71997 /src/secondaryrealmwizard
parent7a5ac493f1c47740eba8bac1f4c026471bd1b845 (diff)
downloadkcmldapcontroller-0573dbda0afe67a81c27cd0adbccc14d90759b7d.tar.gz
kcmldapcontroller-0573dbda0afe67a81c27cd0adbccc14d90759b7d.zip
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/secondaryrealmwizard')
-rw-r--r--src/secondaryrealmwizard/secondaryrealmwizard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/secondaryrealmwizard/secondaryrealmwizard.cpp b/src/secondaryrealmwizard/secondaryrealmwizard.cpp
index 99d0dda..a9e25c7 100644
--- a/src/secondaryrealmwizard/secondaryrealmwizard.cpp
+++ b/src/secondaryrealmwizard/secondaryrealmwizard.cpp
@@ -199,7 +199,7 @@ void SecondaryRealmWizard::closeEvent(TQCloseEvent* e){
/** maybe call a dialog that the wizard has finished. */
void SecondaryRealmWizard::accept() {
// Validate entries
- if (TQString(finishpage->ldapAdminPassword->password()) == "") {
+ if (finishpage->ldapAdminPassword->password() == "") {
KMessageBox::error(this, i18n("<qt><b>Password required!</b><p>Please enter the administration account password</qt>"), i18n("Input Error"));
return;
}
@@ -215,7 +215,7 @@ void SecondaryRealmWizard::accept() {
cancelButton()->setEnabled(false);
finishpage->setEnabled(false);
- if (m_controller->createNewSecondaryController(this, m_realmconfig, finishpage->ldapAdminUsername->text(), finishpage->ldapAdminPassword->password(), finishpage->ldapAdminRealm->text(), &errorString) == 0) {
+ if (m_controller->createNewSecondaryController(this, m_realmconfig, finishpage->ldapAdminUsername->text(), finishpage->ldapAdminPassword->password().utf8(), finishpage->ldapAdminRealm->text(), &errorString) == 0) {
done(0);
}
else {