~renatofilho/address-book-app/fix-1390128

« back to all changes in this revision

Viewing changes to src/imports/ContactList/ContactListPage.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2014-09-23 18:38:54 UTC
  • mfrom: (291.4.16 address-book-app)
  • Revision ID: renato.filho@canonical.com-20140923183854-r54e7uab2acj4srl
Trunk merged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
        }
270
270
 
271
271
        onCountChanged: {
272
 
            if (count > 0)
 
272
            if (count > 0) {
273
273
                mainPage.contactsLoaded = true
 
274
                // break the binding, avoid the message to appear while searhing or switching to favorites
 
275
                emptyStateScreen.visible = false
 
276
 
 
277
            }
274
278
 
275
279
            if ((count > 0) && mainPage.onlineAccountsMessageDialog) {
276
280
                // Because of some contacts can take longer to arrive due the dbus delay,
586
590
 
587
591
    Column {
588
592
        id: emptyStateScreen
 
593
 
589
594
        anchors.centerIn: parent
590
595
        height: childrenRect.height
591
596
        width: childrenRect.width
592
597
        spacing: units.gu(2)
593
598
 
594
599
        visible: (contactList.count === 0 && !indicator.visible)
 
600
 
595
601
        Icon {
596
602
            id: emptyStateIcon
597
603
            anchors.horizontalCenter: emptyStateLabel.horizontalCenter