~zsombi/ubuntu-ui-toolkit/platform_menu

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml

  • Committer: Christian Dywan
  • Date: 2015-12-18 15:28:33 UTC
  • mfrom: (1783 staging)
  • mto: This revision was merged to the branch mainline in revision 1787.
  • Revision ID: christian.dywan@canonical.com-20151218152833-qk8et50txa2cdhv3
MergeĀ lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
    }
93
93
 
94
94
    Component.onDestruction: {
95
 
        rootItem.__propagated.header.visibleChanged.disconnect(fixTopMargin);
96
 
        rootItem.__propagated.header.heightChanged.disconnect(fixTopMargin);
 
95
        if (rootItem && rootItem.__propagated && rootItem.__propagated.header) {
 
96
            rootItem.__propagated.header.visibleChanged.disconnect(fixTopMargin);
 
97
            rootItem.__propagated.header.heightChanged.disconnect(fixTopMargin);
 
98
        }
97
99
    }
98
100
 
99
101
    function fixTopMargin() {