~brendan-donegan/unity8/shellRotationInvestigation

« back to all changes in this revision

Viewing changes to qml/Stages/ApplicationWindow.qml

  • Committer: Mirco Müller
  • Date: 2015-03-06 14:22:41 UTC
  • mfrom: (1589.1.1 unity8)
  • Revision ID: mirco.mueller@ubuntu.com-20150306142241-wse3a2j2yghqfwoh
Merged kgunn's conflict-resolving branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2014 Canonical Ltd.
 
2
 * Copyright 2014-2015 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
44
44
        readonly property color splashColor: root.application ? root.application.splashColor : "#00000000"
45
45
        readonly property color splashColorHeader: root.application ? root.application.splashColorHeader : "#00000000"
46
46
        readonly property color splashColorFooter: root.application ? root.application.splashColorFooter : "#00000000"
47
 
        readonly property url defaultScreenshot: root.application ? root.application.defaultScreenshot : ""
 
47
        readonly property url defaultScreenshot: (root.application && root.application.defaultScreenshot !== undefined) ? root.application.defaultScreenshot : ""
48
48
 
49
49
        // Whether the Application had a surface before but lost it.
50
50
        property bool hadSurface: sessionContainer.surfaceContainer.hadSurface
126
126
 
127
127
    SessionContainer {
128
128
        id: sessionContainer
129
 
        session: application ? application.session : null
 
129
        // A fake application might not even have a session property.
 
130
        session: application && application.session ? application.session : null
130
131
        anchors.fill: parent
131
132
 
132
133
        surfaceOrientationAngle: application && application.rotatesWindowContents ? root.surfaceOrientationAngle : 0