Merge lp:~phablet-team/telephony-service/fix_account_status_watching into lp:telephony-service/staging

Proposed by Gustavo Pichorim Boiko
Status: Merged
Approved by: Tiago Salem Herrmann
Approved revision: 1253
Merged at revision: 1256
Proposed branch: lp:~phablet-team/telephony-service/fix_account_status_watching
Merge into: lp:telephony-service/staging
Diff against target: 26 lines (+5/-0)
2 files modified
libtelephonyservice/accountentry.cpp (+4/-0)
libtelephonyservice/accountlist.cpp (+1/-0)
To merge this branch: bzr merge lp:~phablet-team/telephony-service/fix_account_status_watching
Reviewer Review Type Date Requested Status
Tiago Salem Herrmann (community) Approve
Review via email: mp+321997@code.launchpad.net

Commit message

Fix watching the connection status changes and properly notify the changes to displayed accounts

Description of the change

Fix watching the connection status changes and properly notify the changes to displayed accounts

To post a comment you must log in.
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

looks good. thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libtelephonyservice/accountentry.cpp'
2--- libtelephonyservice/accountentry.cpp 2017-03-22 19:04:13 +0000
3+++ libtelephonyservice/accountentry.cpp 2017-04-05 13:54:08 +0000
4@@ -240,6 +240,10 @@
5 SIGNAL(connectionStatusChanged(Tp::ConnectionStatus)),
6 SIGNAL(connectionStatusChanged(Tp::ConnectionStatus)));
7
8+ connect(mAccount.data(),
9+ SIGNAL(connectionStatusChanged(Tp::ConnectionStatus)),
10+ SIGNAL(connectedChanged()));
11+
12 connect(mAccount.data(), &Tp::Account::parametersChanged,
13 this, &AccountEntry::parametersChanged);
14
15
16=== modified file 'libtelephonyservice/accountlist.cpp'
17--- libtelephonyservice/accountlist.cpp 2017-03-22 19:04:13 +0000
18+++ libtelephonyservice/accountlist.cpp 2017-04-05 13:54:08 +0000
19@@ -121,6 +121,7 @@
20
21 Q_EMIT accountChanged(account, account->active());
22 Q_EMIT activeAccountsChanged();
23+ Q_EMIT displayedAccountsChanged();
24 }
25
26 void AccountList::filterAccounts()

Subscribers

People subscribed via source and target branches

to all changes: