Commit 3a7e596a authored by Eike Hein's avatar Eike Hein

Merge branch 'fix1' into 'master'

main: Check if there is item before setWindow call for player

See merge request !4
parents e103b4fa 46df5a68
......@@ -129,6 +129,11 @@ int main(int argc, char *argv[])
<< QStringLiteral("android.permission.ACCESS_FINE_LOCATION"), &app)));
if(engine.rootObjects().isEmpty()) {
qCritical() << "Application failed to load.";
return -1;
videoPlayer->setWindow(qobject_cast<QQuickWindow *>(engine.rootObjects().first()));
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