Skip to content

Commit

Permalink
Fixed updating of layer names in Properties view
Browse files Browse the repository at this point in the history
When changed by other means (scripting, undo/redo, Layers view), the
name wasn't updating due to a missing valueChanged call.
  • Loading branch information
bjorn committed Nov 15, 2024
1 parent efa984d commit c033d94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tiled/propertieswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,8 @@ class LayerProperties : public ObjectProperties
if (layerChange.layer != layer())
return;

if (layerChange.properties & LayerChangeEvent::NameProperty)
emit mNameProperty->valueChanged();
if (layerChange.properties & LayerChangeEvent::VisibleProperty)
emit mVisibleProperty->valueChanged();
if (layerChange.properties & LayerChangeEvent::LockedProperty)
Expand Down

0 comments on commit c033d94

Please sign in to comment.