Commit 57fbb02f authored by Sébastien Blin's avatar Sébastien Blin

ringmainwindow: select good account when connectivity change

Change-Id: I818cc130fac9a1b011965ded54988b1cef958eda
parent 6a3ffaf7
......@@ -1999,7 +1999,8 @@ CppImpl::slotAccountStatusChanged(const std::string& id)
auto currentIdx = gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->combobox_account_selector));
if (currentIdx == -1)
currentIdx = 0; // If no account selected, select the first account
refreshAccountSelectorWidget(currentIdx);
// NOTE: Because the currentIdx can change (accounts can be re-ordered), force to select the accountInfo_->id
refreshAccountSelectorWidget(currentIdx, accountInfo_->id);
auto* frame_call = gtk_bin_get_child(GTK_BIN(widgets->frame_call));
conversations_view_select_conversation(CONVERSATIONS_VIEW(widgets->treeview_conversations), getCurrentConversation(frame_call).uid);
......
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