tiles: Use deleteLater() in CustomTile::remove()

Otherwise it seems that QQmlEngine can segfault.
This commit is contained in:
Vlad Zahorodnii 2024-03-21 10:36:11 +02:00
parent 0bcb9a0ddd
commit ea9691a2f5

View file

@ -320,7 +320,7 @@ void CustomTile::remove()
}
}
delete this;
deleteLater(); // not using "delete this" because QQmlEngine will crash
}
CustomTile *CustomTile::nextTileAt(Qt::Edge edge) const