From 9d8fd5da044db97847b4c027c2417d9eb740e0c1 Mon Sep 17 00:00:00 2001
From: ababi <albert.babi@savoirfairelinux.com>
Date: Mon, 21 Sep 2020 11:21:29 +0200
Subject: [PATCH] misc: avoid duplicate account combo box refresh

refresh is already performed on property change

Change-Id: I274d22e131e628db40f6a91c425fc72369310117
---
 src/mainview/MainView.qml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/mainview/MainView.qml b/src/mainview/MainView.qml
index cf697f2c9..db17101a6 100644
--- a/src/mainview/MainView.qml
+++ b/src/mainview/MainView.qml
@@ -121,7 +121,6 @@ Window {
     }
 
     function newAccountAdded(index) {
-        mainViewWindowSidePanel.refreshAccountComboBox(index)
         AccountAdapter.accountChanged(index)
     }
 
@@ -235,7 +234,6 @@ Window {
             callStackView.responsibleConvUid = convUid
             callStackView.updateCorrespondingUI()
 
-            mainViewWindowSidePanel.refreshAccountComboBox(index)
             AccountAdapter.accountChanged(index)
             ConversationsAdapter.selectConversation(accountId, convUid, !fromNotification)
             MessagesAdapter.setupChatView(convUid)
@@ -310,7 +308,6 @@ Window {
                     onAccountChanged: {
                         mainViewWindowSidePanel.deselectConversationSmartList()
 
-                        mainViewWindowSidePanel.refreshAccountComboBox(index)
                         AccountAdapter.accountChanged(index)
 
                         settingsView.slotAccountListChanged()
@@ -552,7 +549,6 @@ Window {
         visible: false
 
         onSettingsViewWindowNeedToShowMainViewWindow: {
-            mainViewWindowSidePanel.refreshAccountComboBox(0)
             AccountAdapter.accountChanged(0)
             toggleSettingsView()
         }
-- 
GitLab