WIP: fixed visibility of editor options.

This commit is contained in:
Matthias Koefferlein 2020-09-06 21:26:06 +02:00
parent a9a9f88f92
commit 55f5132514
1 changed files with 2 additions and 2 deletions

View File

@ -1685,8 +1685,8 @@ MainWindow::select_mode (int m)
if (mp_eo_stack && pd_sel) {
eo_visible = pd_sel->editable_enabled ();
}
if (mp_eo_stack && eo_visible) {
lay::EditorOptionsPages *eo_pages = dynamic_cast<lay::EditorOptionsPages *> (mp_eo_stack->currentWidget ());
if (current_view () && eo_visible) {
lay::EditorOptionsPages *eo_pages = current_view ()->editor_options_pages ();
if (! eo_pages || ! eo_pages->has_content ()) {
eo_visible = false;
}