wizard: update account information after creating first account
Change-Id: I4f952f145184f74b5d744623bb6e2dd182e6ceae
diff --git a/callwidget.cpp b/callwidget.cpp
index 57a99d9..8cac5a0 100644
--- a/callwidget.cpp
+++ b/callwidget.cpp
@@ -235,6 +235,15 @@
if (to) {
updateSmartList();
connectConversationModel();
+ try {
+ auto accountList = LRCInstance::accountModel().getAccountList();
+ if (accountList.size() == 1) {
+ auto index = Utils::indexInVector(accountList, LRCInstance::getCurrAccId());
+ if (index != -1) {
+ slotAccountChanged(index);
+ }
+ }
+ } catch (...) {}
ui->currentAccountComboBox->updateComboBoxDisplay();
} else {
QObject::disconnect(smartlistSelectionConnection_);