forked from quickshell/quickshell
all: ensure QObject ownership is Cpp when required
This commit is contained in:
parent
de8668eff3
commit
6966fc025c
4 changed files with 10 additions and 3 deletions
|
@ -104,6 +104,8 @@ void Variants::updateVariants() {
|
|||
continue;
|
||||
}
|
||||
|
||||
QQmlEngine::setObjectOwnership(instance, QQmlEngine::CppOwnership);
|
||||
|
||||
instance->setParent(this);
|
||||
this->instances.insert(variant, instance);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue