Fix warnings when launching tutorial
The following would be printed for every single fake application instance:
qml/Stages/ApplicationWindow.qml:113:18: Unable to assign [undefined] to QObject*
commite6323fed328e2e932a101901399114979fe49d38
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateThu 26 Feb 2015, 19:35 (12 years ago)
parent23d9094
qml/Stages/ApplicationWindow.qml+2−1
@@ -110,7 +110,8 @@ FocusScope {
110110
111111 SessionContainer {
112112 id: sessionContainer
113− session: application ? application.session : null
113+ // A fake application might not even have a session property.
114+ session: application && application.session ? application.session : null
114115 anchors.fill: parent
115116 orientation: root.orientation
116117