Merge lp:~renatofilho/address-book-app/fix-1306798 into lp:address-book-app

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Tiago Salem Herrmann
Approved revision: 167
Merged at revision: 173
Proposed branch: lp:~renatofilho/address-book-app/fix-1306798
Merge into: lp:address-book-app
Diff against target: 44 lines (+7/-2)
2 files modified
src/app/addressbookapp.cpp (+6/-2)
src/app/addressbookapp.h (+1/-0)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/fix-1306798
Reviewer Review Type Date Requested Status
Tiago Salem Herrmann (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+216732@code.launchpad.net

Commit message

Avoid show online account welcome screen if the app is running with arguments.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
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 (e.g. bzr pull lp:trunk -> no changes): 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? N/A
* If you changed the packaging (debian), did you subscribe a core-dev to this MP? N/A

Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

Looks good to me.

-----

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

Did CI run pass? If not, please explain why.
Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
Yes

review: Approve
168. By Renato Araujo Oliveira Filho

Merged trunk.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/addressbookapp.cpp'
2--- src/app/addressbookapp.cpp 2014-04-07 14:01:26 +0000
3+++ src/app/addressbookapp.cpp 2014-05-02 18:15:23 +0000
4@@ -91,7 +91,8 @@
5 m_contentComm(0),
6 m_syncMonitor(0),
7 m_pickingMode(false),
8- m_testMode(false)
9+ m_testMode(false),
10+ m_withArgs(false)
11 {
12 setOrganizationName("com.ubuntu.address-book");
13 setApplicationName("AddressBookApp");
14@@ -163,6 +164,8 @@
15 }
16 }
17
18+ m_withArgs = arguments.size() > 1;
19+
20 /* Configure "artwork:" prefix so that any access to a file whose name starts
21 with that prefix resolves properly. */
22 QDir::addSearchPath("artwork", fullPath("/artwork"));
23@@ -237,7 +240,8 @@
24
25 bool AddressBookApp::isFirstRun() const
26 {
27- if (m_testMode) {
28+ // if the app is running on test mode or with arguments we will not show the welcome screen
29+ if (m_testMode || m_withArgs) {
30 return false;
31 } else {
32 QSettings settings;
33
34=== modified file 'src/app/addressbookapp.h'
35--- src/app/addressbookapp.h 2014-04-07 14:01:26 +0000
36+++ src/app/addressbookapp.h 2014-05-02 18:15:23 +0000
37@@ -67,6 +67,7 @@
38 bool m_viewReady;
39 bool m_pickingMode;
40 bool m_testMode;
41+ bool m_withArgs;
42 };
43
44 #endif

Subscribers

People subscribed via source and target branches