Properly populating the editor options pages

This commit is contained in:
Matthias Koefferlein 2023-01-29 00:12:31 +01:00
parent 99825e2e24
commit 1a1139299a
2 changed files with 20 additions and 13 deletions

View File

@ -638,6 +638,8 @@ void LayoutView::do_setup_editor_options_pages ()
(*op)->setup (this);
}
}
activate_editor_option_pages ();
}
void LayoutView::side_panel_destroyed (QObject *sender)
@ -1437,9 +1439,14 @@ void
LayoutView::mode (int m)
{
if (mode () != m) {
LayoutViewBase::mode (m);
activate_editor_option_pages ();
}
}
void
LayoutView::activate_editor_option_pages ()
{
lay::EditorOptionsPages *eo_pages = editor_options_pages ();
if (eo_pages) {
@ -1455,8 +1462,6 @@ LayoutView::mode (int m)
}
}
}
}
void

View File

@ -679,6 +679,8 @@ protected:
private:
using LayoutViewBase::ui;
void activate_editor_option_pages ();
};
/**