Skip to content

Commit

Permalink
Fixed removal of types by name
Browse files Browse the repository at this point in the history
;)
  • Loading branch information
bjorn committed Jun 18, 2024
1 parent ca4df52 commit b1486e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tiled/editableproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ void EditableProject::removeTypeByName(const QString &name)
{
int index = project()->propertyTypes()->findIndexByName(name);
if (index < 0)
return
return;

// TODO the type isn't actually being deleted even when index >= 0
project()->propertyTypes()->removeAt(index);
applyPropertyChanges();
}
Expand Down

0 comments on commit b1486e2

Please sign in to comment.