diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2014-06-30 14:26:29 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2014-06-30 14:45:04 +0200 |
commit | afd0051c5cfb6ccb1d361d89c36b9c494c29ec5e (patch) | |
tree | 117fee472a1d32272a415a95aeddb2a5e9ce199b /examples | |
parent | 56a5b47dad6f6250ec45cb6136c77371cee645c5 (diff) |
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 <jpnurmi@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/winextras/quickplayer/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<QWindow *>(root)) window->show(); + else + return -1; return app.exec(); } |