summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bondwizard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bondwizard.cpp b/src/bondwizard.cpp
index 9d187ae..757fa71 100644
--- a/src/bondwizard.cpp
+++ b/src/bondwizard.cpp
@@ -203,6 +203,11 @@ void BondWizard::accept(){
finishpage->setEnabled(false);
if (LDAPManager::bondRealm(finishpage->ldapAdminUsername->text(), finishpage->ldapAdminPassword->password(), finishpage->ldapAdminRealm->text(), &errorString) == 0) {
+ m_finalRealm.bonded = true;
+ if (m_realmList->contains(m_finalRealm.name)) {
+ m_realmList->remove(m_finalRealm.name);
+ }
+ m_realmList->insert(m_finalRealm.name, m_finalRealm);
m_ldapConfig->save();
done(0);
}