on xenial help sign in
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* Approved by: Josh Arenson

commit2cd65543cabe8186a1fcac6619bdb0cefc70a812 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateWed 18 Mar 2015, 10:16 (12 years ago) parentbb0b4a6e6323fe
1 file changed+2−1
qml/Stages/ApplicationWindow.qml+2−1
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