~renatofilho/address-book-app/hide-favorite-if-empty

« back to all changes in this revision

Viewing changes to src/imports/ABContactListPage.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-01-14 21:45:20 UTC
  • Revision ID: renato.filho@canonical.com-20160114214520-z5w7z5nt8u25kesn
Revert wrong change on last commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
434
434
                target: pageHeader
435
435
 
436
436
                // TRANSLATORS: this refers to all contacts
437
 
                sectionsModel:  [i18n.tr("All"), i18n.tr("Favorites")]
 
437
                sectionsModel: contactMap.hasFavorites || (contactList.mostCalledCount > 0) ?
 
438
                                     [ i18n.tr("All"), i18n.tr("Favorites") ] : []
438
439
                leadingActions: defaultState.leadingActions
439
440
                trailingActions: defaultState.trailingActions
440
441
            }