-rw-r--r-- | microkde/kdialogbase.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp index d1f7630..801094a 100644 --- a/microkde/kdialogbase.cpp +++ b/microkde/kdialogbase.cpp @@ -25,4 +25,6 @@ KDialogBase::KDialogBase( QWidget *parent, const char *name, bool modal, init( caption, buttonMask, user1, user2 ); - if (findButton( defaultButton ) ) + if (findButton( defaultButton ) ) { (findButton( defaultButton ) )->setFocus(); + (findButton( defaultButton ) )->setDefault( true ); + } @@ -76,2 +78,3 @@ void KDialogBase::init( const QString &caption, int buttonMask, connect( mOkButton, SIGNAL( clicked() ), SLOT( slotOk() ) ); + mOkButton->setDefault( true ); } else { |