Merge lp:~boiko/telephony-service/fix_call_earlier into lp:telephony-service

Proposed by Gustavo Pichorim Boiko
Status: Merged
Approved by: Tiago Salem Herrmann
Approved revision: 803
Merged at revision: 804
Proposed branch: lp:~boiko/telephony-service/fix_call_earlier
Merge into: lp:telephony-service
Diff against target: 23 lines (+4/-6)
1 file modified
libtelephonyservice/callmanager.cpp (+4/-6)
To merge this branch: bzr merge lp:~boiko/telephony-service/fix_call_earlier
Reviewer Review Type Date Requested Status
Tiago Salem Herrmann (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+215720@code.launchpad.net

Commit message

Do not use the TelepathyHelper::accounts(), and use the ::accountIds() instead as this might be called before the telepathy stuff is prepared.

Description of the change

Do not use the TelepathyHelper::accounts(), and use the ::accountIds() instead as this might be called before the telepathy stuff is prepared.

== Checklist ==
Are there any related MPs required for this MP to build/function as expected? Please list.
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 (https://wiki.ubuntu.com/Process/Merges/TestPlan/telephony-service) 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

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
803. By Gustavo Pichorim Boiko

Merge latest changes from trunk

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libtelephonyservice/callmanager.cpp'
2--- libtelephonyservice/callmanager.cpp 2014-04-08 20:28:49 +0000
3+++ libtelephonyservice/callmanager.cpp 2014-04-15 17:21:39 +0000
4@@ -115,15 +115,13 @@
5
6 void CallManager::startCall(const QString &phoneNumber, const QString &accountId)
7 {
8- Tp::AccountPtr account;
9- if (accountId.isNull()) {
10- account = TelepathyHelper::instance()->accounts()[0];
11- } else {
12- account = TelepathyHelper::instance()->accountForId(accountId);
13+ QString account = accountId;
14+ if (account.isNull()) {
15+ account = TelepathyHelper::instance()->accountIds()[0];
16 }
17
18 QDBusInterface *phoneAppHandler = TelepathyHelper::instance()->handlerInterface();
19- phoneAppHandler->call("StartCall", phoneNumber, account->uniqueIdentifier());
20+ phoneAppHandler->call("StartCall", phoneNumber, account);
21 }
22
23 void CallManager::onConnectedChanged()

Subscribers

People subscribed via source and target branches