Commit 155f13ec authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/app/App): parent of sub windows is engine!

parent 519e8515
......@@ -127,7 +127,7 @@ inline QQuickWindow *createSubWindow (App *app, const char *path) {
QObject *object = component.create();
QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership);
object->setParent(app->getMainWindow());
object->setParent(app->getEngine());
return qobject_cast<QQuickWindow *>(object);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment