From afd0051c5cfb6ccb1d361d89c36b9c494c29ec5e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 30 Jun 2014 14:26:29 +0200 Subject: QuickPlayer example: Return when object creation fails. Fixes a hang when the multi media module cannot be loaded. Change-Id: I996df78742ee493a46c39078c5c562c913536323 Reviewed-by: J-P Nurmi --- examples/winextras/quickplayer/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/winextras/quickplayer/main.cpp b/examples/winextras/quickplayer/main.cpp index 9f79b1d..efd9e4d 100644 --- a/examples/winextras/quickplayer/main.cpp +++ b/examples/winextras/quickplayer/main.cpp @@ -64,5 +64,7 @@ int main(int argc, char *argv[]) QObject* root = engine.rootObjects().value(0); if (QWindow *window = qobject_cast(root)) window->show(); + else + return -1; return app.exec(); } -- cgit v1.2.3