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

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 <>
Signed-off-by: default avatarStepan Salenikovich <>
parent 15a8b90f
...@@ -1221,6 +1221,9 @@ ring_main_window_init(RingMainWindow *win) ...@@ -1221,6 +1221,9 @@ ring_main_window_init(RingMainWindow *win)
&CallModel::instance(), &CallModel::instance(),
&CallModel::incomingCall, &CallModel::incomingCall,
[priv](Call* call) { [priv](Call* call) {
// select the revelant account
// clear the regex to make sure the call is shown // clear the regex to make sure the call is shown
RecentModel::instance().peopleProxy()->setFilterRegExp(QRegExp()); RecentModel::instance().peopleProxy()->setFilterRegExp(QRegExp());
contacts_view_set_filter_string(CONTACTS_VIEW(priv->treeview_contacts),""); contacts_view_set_filter_string(CONTACTS_VIEW(priv->treeview_contacts),"");
Supports Markdown
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