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
|
@ -157,6 +157,7 @@ SessionLockSurface::SessionLockSurface(QObject* parent)
|
|||
: Reloadable(parent)
|
||||
, mContentItem(new QQuickItem())
|
||||
, ext(new LockWindowExtension(this)) {
|
||||
QQmlEngine::setObjectOwnership(this->mContentItem, QQmlEngine::CppOwnership);
|
||||
this->mContentItem->setParent(this);
|
||||
|
||||
// clang-format off
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue