Merge lp:~renatofilho/address-book-app/push-page-sync into lp:address-book-app

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Bill Filler
Approved revision: 495
Merged at revision: 505
Proposed branch: lp:~renatofilho/address-book-app/push-page-sync
Merge into: lp:address-book-app
Diff against target: 35 lines (+8/-14)
1 file modified
src/imports/ABContactListPage.qml (+8/-14)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/push-page-sync
Reviewer Review Type Date Requested Status
Florian Boucault (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+276278@code.launchpad.net

Commit message

Load pages sync to avoid delays.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
494. By Renato Araujo Oliveira Filho

trunk merged.

495. By Renato Araujo Oliveira Filho

Trunk merged.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Florian Boucault (fboucault) wrote :

Code looks fine.

review: Approve
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Are there any related MPs required for this MP to build/function as expected?
NO

Is your branch in sync with latest trunk?
YES

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
YES

Did you successfully run all tests found in your component's Test Plan on device or emulator?
YES

If you changed the UI, was the change specified/approved by design?
NO UI CHANGED

If you changed UI labels, did you update the pot file?
NO LABEL CHANGED

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?
NO PACKAGING CHANGED

496. By Renato Araujo Oliveira Filho

Trunk merged.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/imports/ABContactListPage.qml'
2--- src/imports/ABContactListPage.qml 2015-10-26 13:18:11 +0000
3+++ src/imports/ABContactListPage.qml 2015-11-24 00:29:38 +0000
4@@ -66,24 +66,18 @@
5 }
6
7 function openEditPage(editPageProperties, sourcePage) {
8- var incubator = pageStack.addPageToNextColumn(sourcePage,
9- Qt.resolvedUrl("ABContactEditorPage.qml"),
10- editPageProperties);
11- incubator.onStatusChanged = function(status) {
12- if (status == Component.Ready) {
13- mainPage.contactEditorPage = incubator.object;
14- }
15+ var component = Qt.createComponent(Qt.resolvedUrl("ABContactEditorPage.qml"))
16+ if (component.status === Component.Ready) {
17+ mainPage.contactEditorPage = component.createObject(mainPage, editPageProperties)
18+ pageStack.addPageToNextColumn(sourcePage, mainPage.contactEditorPage)
19 }
20 }
21
22 function openViewPage(viewPageProperties) {
23- var incubator = pageStack.addPageToNextColumn(mainPage,
24- Qt.resolvedUrl("ABContactViewPage.qml"),
25- viewPageProperties);
26- incubator.onStatusChanged = function(status) {
27- if (status == Component.Ready) {
28- contactViewPage = incubator.object;
29- }
30+ var component = Qt.createComponent(Qt.resolvedUrl("ABContactViewPage.qml"))
31+ if (component.status === Component.Ready) {
32+ mainPage.contactViewPage = component.createObject(mainPage, viewPageProperties)
33+ pageStack.addPageToNextColumn(mainPage, mainPage.contactViewPage)
34 }
35 }
36

Subscribers

People subscribed via source and target branches