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: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
Signed-off-by: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
diff --git a/src/ringmainwindow.cpp b/src/ringmainwindow.cpp
index b0de236..055f9b2 100644
--- a/src/ringmainwindow.cpp
+++ b/src/ringmainwindow.cpp
@@ -1221,6 +1221,9 @@
         &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),"");