~bzoltan/ubuntu-ui-toolkit/add_default_tools

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/MainView.qml

  • Committer: Tarmac
  • Author(s): tpeeters
  • Date: 2013-09-23 19:16:38 UTC
  • mfrom: (746.2.4 gallery-app-warnings)
  • Revision ID: tarmac-20130923191638-zym66lkiy0jm9jlr
Fix warnings when running gallery-app autopilot tests. Fixes: https://bugs.launchpad.net/bugs/1223326, https://bugs.launchpad.net/bugs/1223329.

Approved by PS Jenkins bot, Tim Peeters, Zsombor Egri.

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
            clip: headerItem.bottomY > 0 && activePage && activePage.flickable
252
252
                  && -activePage.flickable.contentY < headerItem.bottomY
253
253
 
254
 
            property Page activePage: mainView.activeLeafNode
 
254
            property Page activePage: isPage(mainView.activeLeafNode) ? mainView.activeLeafNode : null
 
255
 
 
256
            function isPage(item) {
 
257
                return item.hasOwnProperty("__isPageTreeNode") && item.__isPageTreeNode &&
 
258
                        item.hasOwnProperty("title") && item.hasOwnProperty("tools");
 
259
            }
255
260
 
256
261
            Item {
257
262
                id: contents