[consider merging] Bugfix: selecting a recent configuration in the editor options did not select the layer if it was freshly created

This commit is contained in:
Matthias Koefferlein 2026-01-14 14:31:47 +01:00
parent ca9a3198f5
commit 2dd804a70f
1 changed files with 3 additions and 0 deletions

View File

@ -1950,6 +1950,9 @@ LayerControlPanel::do_update_content ()
mp_layer_list->setRootIsDecorated (has_children);
mp_layer_list->doItemsLayout ();
// establishes the current layer in case it was changed during the "in update" phase
mp_layer_list->set_current (lay::LayerPropertiesConstIterator (mp_view->get_properties (), m_current_layer));
m_needs_update = false;
} else if (m_needs_update) {