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
|
@ -187,6 +187,8 @@ void SocketServer::onNewConnection() {
|
|||
return;
|
||||
}
|
||||
|
||||
QQmlEngine::setObjectOwnership(instance, QQmlEngine::CppOwnership);
|
||||
|
||||
this->mSockets.append(instance);
|
||||
instance->setParent(this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue