diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-15 23:53:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-15 23:53:15 -0600 |
commit | f90df49b284a4027fe75ff1be59c7a38fe38c17a (patch) | |
tree | e06de5271c580ba7f4dbf40bd5a743156a8d4865 /src/secondaryrealmwizard | |
parent | 937cb8d13055b13da6e267989404ac529b0633d6 (diff) | |
download | kcmldapcontroller-f90df49b284a4027fe75ff1be59c7a38fe38c17a.tar.gz kcmldapcontroller-f90df49b284a4027fe75ff1be59c7a38fe38c17a.zip |
Use libtdeldap kadmin talker method
Minor GUI enhancements
Diffstat (limited to 'src/secondaryrealmwizard')
-rw-r--r-- | src/secondaryrealmwizard/secondaryrealmwizard.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/secondaryrealmwizard/secondaryrealmwizard.cpp b/src/secondaryrealmwizard/secondaryrealmwizard.cpp index ec5f470..baefe8d 100644 --- a/src/secondaryrealmwizard/secondaryrealmwizard.cpp +++ b/src/secondaryrealmwizard/secondaryrealmwizard.cpp @@ -112,6 +112,10 @@ void SecondaryRealmWizard::next() { if (currentPage()==intropage) { TQWizard::next(); realmpage->validateEntries(); + + // Focus the first entry field on the new wizard page + realmpage->txtRealmName->setFocus(); + realmpage->txtRealmName->selectAll(); } else if (currentPage()==realmpage) { // Save realm information @@ -132,9 +136,13 @@ void SecondaryRealmWizard::next() { finishpage->ldapAdminRealm->setText(realmpage->txtRealmName->text()); TQWizard::next(); finishpage->validateEntries(); + + // Focus the first entry field on the new wizard page + finishpage->ldapAdminUsername->setFocus(); + finishpage->ldapAdminUsername->selectAll(); } if (currentPage()==finishpage) { - finishButton()->setFocus(); + // } } @@ -205,6 +213,8 @@ void SecondaryRealmWizard::accept() { nextButton()->setEnabled(false); finishButton()->setEnabled(false); cancelButton()->setEnabled(false); + finishpage->setEnabled(false); + if (m_controller->createNewSecondaryController(this, m_realmconfig, finishpage->ldapAdminUsername->text(), finishpage->ldapAdminPassword->password(), finishpage->ldapAdminRealm->text(), &errorString) == 0) { done(0); } @@ -212,6 +222,7 @@ void SecondaryRealmWizard::accept() { KMessageBox::error(this, i18n("<qt><b>Unable to add new secondary realm controller!</b><p>Details: %1</qt>").arg(errorString), i18n("Unable to add new secondary realm controller")); } + finishpage->setEnabled(true); backButton()->setEnabled(true); finishButton()->setEnabled(true); cancelButton()->setEnabled(true); |