mirror of https://github.com/KLayout/klayout.git
WIP: fixed visibility of editor options.
This commit is contained in:
parent
a9a9f88f92
commit
55f5132514
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue