Skip to content

Set cpp ownership on the units instance

David Redondo requested to merge work/crashownership into master

Fixes common and frequent crashes introduced by 6c627ea0. Otherwise the engine will try to delete it. The docs say: NOTE: A QObject singleton type instance returned from a singleton type provider is owned by the QML engine unless the object has explicit QQmlEngine::CppOwnership flag set.

Merge request reports