Bug 668993 - Sync account wizard does not close after clicking on "Finish". r+a=Neil
authorJens Hatlak <jh@junetz.de>
Mon, 11 Jul 2011 13:05:47 +0200
changeset 8286 3f57dc8c8349525c69d52fa63e1d7b636c0c1f48
parent 8285 4f630202911791bbc9c7aef18ba5ec468278224d
child 8287 4ad6cea2a306525c7d4c8da604c72eba160718a3
push idunknown
push userunknown
push dateunknown
bugs668993
Bug 668993 - Sync account wizard does not close after clicking on "Finish". r+a=Neil
suite/common/sync/syncSetup.js
--- a/suite/common/sync/syncSetup.js
+++ b/suite/common/sync/syncSetup.js
@@ -502,17 +502,17 @@ var gSyncSetup = {
         gSyncUtils.openFirstClientFirstrun();
       else
         gSyncUtils.openAddedClientFirstrun();
     }
 
     if (!Weave.Service.isLoggedIn)
       Weave.Service.login();
 
-    Weave.Service.syncOnIdle(1);
+    Weave.Utils.nextTick(Weave.Service.sync, Weave.Service);
   },
 
   onWizardCancel: function () {
     if (this._resettingSync)
       return;
 
     if (this.wizard.pageIndex == SETUP_SUCCESS_PAGE) {
       this.onWizardFinish();