diff --git a/src/edt/edt/edtEditorOptionsPages.cc b/src/edt/edt/edtEditorOptionsPages.cc index e973233c7..0d1f83d03 100644 --- a/src/edt/edt/edtEditorOptionsPages.cc +++ b/src/edt/edt/edtEditorOptionsPages.cc @@ -208,6 +208,15 @@ BEGIN_PROTECTED END_PROTECTED_W (this) } +void +EditorOptionsPages::accept () +{ +BEGIN_PROTECTED + do_apply (); + QDialog::accept (); +END_PROTECTED_W (this) +} + // ------------------------------------------------------------------ // EditorOptionsGeneric implementation diff --git a/src/edt/edt/edtEditorOptionsPages.h b/src/edt/edt/edtEditorOptionsPages.h index 114364afd..bdfc2a2cd 100644 --- a/src/edt/edt/edtEditorOptionsPages.h +++ b/src/edt/edt/edtEditorOptionsPages.h @@ -101,6 +101,7 @@ public: public slots: void apply (); void setup (); + void accept (); private: std::vector m_pages;