Changeset 11aa72


Ignore:
Timestamp:
Sep 29, 2007, 8:19:09 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
4974ff
Parents:
8f20eb
Message:

sometimes removing of the account-folder seems to fail, so try it only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_account.js

    r8f20eb r11aa72  
    9696        if (vI_account.account) {
    9797            vI_notificationBar.dump("## vI_account: Account " + vI_account.account.incomingServer.prettyName + " removed\n")
    98             vI_account.account.incomingServer.rootFolder.Delete();
     98            try { vI_account.account.incomingServer.rootFolder.Delete(); }
     99            catch (e) { };
    99100            gAccountManager.removeAccount(vI_account.account);
    100101            vI_account.account = null;
     
    133134       
    134135        // remove the folder created with this account - it should never be used to store mails
    135         vI_account.account.incomingServer.rootFolder.Delete();
     136        try { vI_account.account.incomingServer.rootFolder.Delete(); }
     137        catch (e) { };
    136138   
    137139        vI_notificationBar.dump("## vI_account: New Account created " + vI_account.account.incomingServer.prettyName + "\n");
Note: See TracChangeset for help on using the changeset viewer.