Commit 85e992af authored by Nicolas Jager's avatar Nicolas Jager Committed by Stepan Salenikovich

incoming call : change selected account to the same as the call

- in order to see an incoming call which is received by a different
account than the current user selected account, we change the user
selected account to that of the incoming call

[SS: clarified commit message]

Change-Id: Ice92e80fd25185b05b7ae325d7f4f98cd0f84993
Reviewed-by: default avatarStepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
Signed-off-by: default avatarStepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
parent 15a8b90f
......@@ -1221,6 +1221,9 @@ ring_main_window_init(RingMainWindow *win)
&CallModel::instance(),
&CallModel::incomingCall,
[priv](Call* call) {
// select the revelant account
AccountModel::instance().setUserChosenAccount(call->account());
// clear the regex to make sure the call is shown
RecentModel::instance().peopleProxy()->setFilterRegExp(QRegExp());
contacts_view_set_filter_string(CONTACTS_VIEW(priv->treeview_contacts),"");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment