diff --git a/src/edt/edt/edtEditorOptionsPages.cc b/src/edt/edt/edtEditorOptionsPages.cc index a10ee3b0a..b3db6e5fe 100644 --- a/src/edt/edt/edtEditorOptionsPages.cc +++ b/src/edt/edt/edtEditorOptionsPages.cc @@ -901,7 +901,6 @@ EditorOptionsInstPCellParam::update_pcell_parameters (const std::vector layout ()->addWidget (mp_pcell_parameters->page_widget ()); mp_pcell_parameters->set_state (pcp_state); - mp_pcell_parameters->edited.add (this, &EditorOptionsInstPCellParam::parameters_page_edited); } else { @@ -913,6 +912,16 @@ EditorOptionsInstPCellParam::update_pcell_parameters (const std::vector edited.add (this, &EditorOptionsInstPCellParam::parameters_page_edited); + } +} + void EditorOptionsInstPCellParam::parameters_page_edited () { diff --git a/src/edt/edt/edtEditorOptionsPages.h b/src/edt/edt/edtEditorOptionsPages.h index 7b008638c..539754820 100644 --- a/src/edt/edt/edtEditorOptionsPages.h +++ b/src/edt/edt/edtEditorOptionsPages.h @@ -183,6 +183,9 @@ public: private slots: void update_pcell_parameters (); +protected: + virtual void attach_events (); + private: Ui::EditorOptionsInstPCellParam *mp_ui; std::unique_ptr mp_pcell_parameters; diff --git a/src/laybasic/laybasic/layEditorOptionsPage.h b/src/laybasic/laybasic/layEditorOptionsPage.h index 9e7deedd3..48ca6d10b 100644 --- a/src/laybasic/laybasic/layEditorOptionsPage.h +++ b/src/laybasic/laybasic/layEditorOptionsPage.h @@ -304,6 +304,7 @@ protected: virtual void technology_changed (const std::string & /*tech*/) { } virtual void activated () { } virtual void deactivated () { } + virtual void attach_events (); private: EditorOptionsPageCollection *mp_owner; @@ -316,7 +317,6 @@ private: void on_active_cellview_changed (); void on_technology_changed (); - void attach_events (); }; /**