tiles: Use deleteLater() in CustomTile::remove()
Otherwise it seems that QQmlEngine can segfault.
This commit is contained in:
parent
0bcb9a0ddd
commit
ea9691a2f5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue