Bug 720661 - Display account central when no default account / no accounts setup
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sun, 29 Apr 2012 16:11:16 +0100
changeset 12001 2ae1a960f31875c494d134f615020ccc5a5a117d
parent 12000 00b3085697d35ddda3936b144aa321c30496a311
child 12002 21373a678b467335c577486b801de01abeea7ca3
push id599
push usermconley@mozilla.com
push dateMon, 16 Jul 2012 20:33:12 +0000
treeherdercomm-beta@c3489d5b7b65 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs720661
Bug 720661 - Display account central when no default account / no accounts setup r=neil
suite/mailnews/msgMail3PaneWindow.js
--- a/suite/mailnews/msgMail3PaneWindow.js
+++ b/suite/mailnews/msgMail3PaneWindow.js
@@ -933,18 +933,18 @@ function loadStartFolder(initialUri)
         if (isLoginAtStartUpEnabled &&
             gLoadStartFolder &&
             !defaultServer.isDeferredTo &&
             defaultServer.rootFolder == defaultServer.rootMsgFolder)
           defaultServer.performBiff(msgWindow);
     }
     catch(ex)
     {
-      dump(ex);
-      dump('Exception in LoadStartFolder caused by no default account.  We know about this\n');
+      // If no default account then show account central page.
+      ShowAccountCentral();
     }
 
     MsgGetMessagesForAllServers(defaultServer);
 
     if (CheckForUnsentMessages() && !Services.io.offline)
     {
         InitPrompts();
         InitServices();