-rw-r--r-- | microkde/kutils/kcmultidialog.cpp | 7 | ||||
-rw-r--r-- | microkde/kutils/kcmultidialog.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/microkde/kutils/kcmultidialog.cpp b/microkde/kutils/kcmultidialog.cpp index 6c82e4f..e7aa9d1 100644 --- a/microkde/kutils/kcmultidialog.cpp +++ b/microkde/kutils/kcmultidialog.cpp @@ -78,13 +78,16 @@ void KCMultiDialog::slotDefault() clientChanged(true); return; } } } - +void KCMultiDialog::accept() +{ + slotOk(); +} void KCMultiDialog::slotApply() { qDebug("KCMultiDialog::slotApply clicked"); QPtrListIterator<KCModule> it(modules); for (; it.current(); ++it) @@ -100,13 +103,13 @@ void KCMultiDialog::slotOk() { qDebug("KCMultiDialog::slotOk clicked"); QPtrListIterator<KCModule> it(modules); for (; it.current(); ++it) (*it)->save(); - accept(); + QDialog::accept(); emit okClicked(); } void KCMultiDialog::slotHelp() { diff --git a/microkde/kutils/kcmultidialog.h b/microkde/kutils/kcmultidialog.h index 1aa66b2..768faea 100644 --- a/microkde/kutils/kcmultidialog.h +++ b/microkde/kutils/kcmultidialog.h @@ -109,12 +109,14 @@ protected slots: * You can reimplement it if needed * * @note Make sure you call the original implementation! **/ virtual void slotHelp(); + void accept(); + private slots: void slotAboutToShow(QWidget *); void clientChanged(bool state); |