summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-07-05 14:03:18 (UTC)
committer zautrix <zautrix>2004-07-05 14:03:18 (UTC)
commitaf75333f69c6b7284a7fbe7ab63c08e10ae4541b (patch) (side-by-side diff)
tree2b530e1f75ce72d74cd6888ce0e0fc2862a6859f
parentca6ce5868aef5e925ff2e61d363f71e43d2b7d7b (diff)
downloadkdepimpi-af75333f69c6b7284a7fbe7ab63c08e10ae4541b.zip
kdepimpi-af75333f69c6b7284a7fbe7ab63c08e10ae4541b.tar.gz
kdepimpi-af75333f69c6b7284a7fbe7ab63c08e10ae4541b.tar.bz2
Fixed an endless loop
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdialogbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp
index c953058..2251207 100644
--- a/microkde/kdialogbase.cpp
+++ b/microkde/kdialogbase.cpp
@@ -199,92 +199,92 @@ QPushButton *KDialogBase::findButton( ButtonCode id )
break;
case User1:
button = mUser1Button;
break;
case User2:
button = mUser2Button;
break;
case Cancel:
button = mCancelButton;
break;
case Default:
button = mDefaultButton;
break;
case Close:
button = mCloseButton;
break;
default:
break;
}
return button;
}
void KDialogBase::enableButtonOK( bool state )
{
enableButton( Ok, state );
}
void KDialogBase::enableButtonApply( bool state )
{
enableButton( Apply, state );
}
void KDialogBase::showButton( ButtonCode id, bool show )
{
QPushButton *button = findButton( id );
if ( button ) {
if ( show ) button->show();
else button->hide();
}
}
int KDialogBase::pageIndex( QWidget *widget ) const
{
return 0;
}
bool KDialogBase::showPage( int index )
{
tabWidget()->setCurrentPage( index );return false;
}
QFrame *KDialogBase::plainPage()
{
if ( !mPlainPage ) {
mPlainPage = new QFrame( this );
setMainWidget( mPlainPage );
}
return mPlainPage;
}
void KDialogBase::slotOk()
{
emit okClicked();
- accept();
+ QDialog::accept();
}
void KDialogBase::slotApply()
{
emit applyClicked();
}
void KDialogBase::slotCancel()
{
emit cancelClicked();
reject();
}
void KDialogBase::slotClose()
{
emit closeClicked();
reject();
}
void KDialogBase::slotUser1()
{
emit user1Clicked();
}
void KDialogBase::slotUser2()
{
emit user2Clicked();
}