~phablet-team/address-book-app/rtm-14.09

« back to all changes in this revision

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

  • Committer: CI Train Bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2015-02-14 00:56:49 UTC
  • mfrom: (295.1.1 fix-1419854-rtm)
  • Revision ID: ci-train-bot@canonical.com-20150214005649-3ozbfx9ipnr1ohxb
Show a dialog with a spinner while exporting contacts. Fixes: #1419854

Show diffs side-by-side

added added

removed removed

Lines of Context:
430
430
                        for (var i=0, iMax=items.count; i < iMax; i++) {
431
431
                            contacts.push(items.get(i).model.contact)
432
432
                        }
433
 
 
434
433
                        contactExporter.start(contacts)
435
434
                        contactList.endSelection()
436
435
                    }
569
568
        id: contactExporter
570
569
 
571
570
        contactModel: contactList.listModel
572
 
        outputFile: mainPage.pickMode ? "file:///tmp/address_book_app_export.vcf" : ""
 
571
        exportToDisk: mainPage.pickMode
573
572
        onDone: {
574
573
            mainPage.pickMode = false
575
574
            mainPage.state = "default"
576
 
            application.returnVcard(contactExporter.outputFile)
 
575
            application.returnVcard(outputFile)
577
576
        }
578
577
 
579
578
        onContactsFetched: {
580
579
            // Share contacts to an application chosen by the user
581
580
            if (!mainPage.pickMode) {
 
581
                contactExporter.dismissBusyDialog()
582
582
                pageStack.push(Qt.resolvedUrl("../ContactShare/ContactSharePage.qml"),
583
583
                               { contactModel: contactExporter.contactModel, contacts: contacts })
584
584
            }