~ubuntu-sdk-team/ubuntu-ui-toolkit/locDemo

« back to all changes in this revision

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

  • Committer: Christian Dywan
  • Date: 2014-05-19 13:11:32 UTC
  • mfrom: (1041.2.19 staging)
  • Revision ID: christian.dywan@canonical.com-20140519131132-8syc77nqqotvb744
MergeĀ lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
 
152
152
        if (model.count > 0) {
153
153
            if (internal.checkRoles()) {
154
 
                model.selectedIndex = Math.max(Math.min(tabBar.selectedIndex, model.count - 1), 0);
 
154
                model.selectedIndex = Math.max(Math.min(model.selectedIndex, model.count - 1), 0);
155
155
            }
156
156
        } else {
157
157
            internal.modelChecked = false;