diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-17 13:40:08 +0200 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-18 13:52:02 +0200 |
commit | 9dace67c1bd9b15c9744c78696c791b7fbf7eae8 (patch) | |
tree | a71c3b9a649bb34e01c5fcb154bb489475d82861 /examples | |
parent | 56fd0a1e5f293d04b071877d5e95e870a3e9c802 (diff) |
qml-compositor: Error check loading of WindowChrome.
Change-Id: I76303b8640f013167159d94e8db7d673358c4983
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qml-compositor/main.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/qml-compositor/main.qml b/examples/qml-compositor/main.qml index a8f038324..a6b54c312 100644 --- a/examples/qml-compositor/main.qml +++ b/examples/qml-compositor/main.qml @@ -96,6 +96,10 @@ Item { windowContainer.targetHeight = window.size.height; var windowChromeComponent = Qt.createComponent("WindowChrome.qml"); + if (windowChromeComponent.status != Component.Ready) { + console.warn("Error loading WindowChrome.qml: " + windowChromeComponent.errorString()); + return; + } var windowChrome = windowChromeComponent.createObject(windowContainer.child); CompositorLogic.addWindow(windowContainer); |