Bug 954480 - Account window shows up on disconnect/reconnect, r=florian.
authoraleth <aleth@instantbird.org>
Sun, 24 Jun 2012 00:34:11 +0200
changeset 18718 0babe2e694de028480d77120e9f199da9a378458
parent 18717 7c61df9c95e0f0b456050e83eaaec702352a5eb4
child 18719 c8c472a0f9d9f0c0cb603f422277fedcf50e50b1
push id1103
push usermbanner@mozilla.com
push dateTue, 18 Mar 2014 07:44:06 +0000
treeherdercomm-beta@50c6279a0af0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs954480
Bug 954480 - Account window shows up on disconnect/reconnect, r=florian.
im/modules/ibCore.jsm
--- a/im/modules/ibCore.jsm
+++ b/im/modules/ibCore.jsm
@@ -154,17 +154,17 @@ var Core = {
        we don't want to popup the account manager */
     if ((!hasActiveAccount && !isOffline) || (aIsStarting && hasCrashedAccount))
       this.showAccounts();
   },
 
   observe: function(aSubject, aTopic, aMsg) {
     if (aTopic == "account-disconnected") {
       let account = aSubject.QueryInterface(Ci.imIAccount);
-      if (account.reconnectAttempt <= 1)
+      if (!account.reconnectAttempt)
         this._showAccountManagerIfNeeded(false);
       return;
     }
 
     if (aTopic == "browser-request") {
       Services.ww.openWindow(null,
                              "chrome://chat/content/browserRequest.xul",
                              null, "chrome", aSubject);