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 21, 2024
1 parent 7d14e22 commit 43a5dbb
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 43a5dbb

Please sign in to comment.