diff options
Diffstat (limited to 'src/bondrealmpage.cpp')
-rw-r--r-- | src/bondrealmpage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bondrealmpage.cpp b/src/bondrealmpage.cpp index 020c5a5..80f047a 100644 --- a/src/bondrealmpage.cpp +++ b/src/bondrealmpage.cpp @@ -32,6 +32,7 @@ #include <kprocess.h> #include <klineedit.h> #include <kwizard.h> +#include <kdialogbase.h> #include "bondrealmpage.h" @@ -44,6 +45,7 @@ BondRealmPage::BondRealmPage(TQWidget *parent, const char *name ) : BondRealmPag connect(txtAdminServer, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(validateEntries())); m_parentWizard = dynamic_cast<KWizard*>(parent); + m_parentDialog = dynamic_cast<KDialogBase*>(parent); } BondRealmPage::~BondRealmPage() { @@ -59,6 +61,14 @@ void BondRealmPage::validateEntries() { m_parentWizard->nextButton()->setEnabled(false); } } + if (m_parentDialog) { + if ((txtRealmName->text() != "") && (txtKDC->text() != "") && (txtAdminServer->text() != "")) { + m_parentDialog->enableButton(KDialogBase::Ok, true); + } + else { + m_parentDialog->enableButton(KDialogBase::Ok, false); + } + } } #include "bondrealmpage.moc" |