Changeset c95645


Ignore:
Timestamp:
Sep 2, 2008, 12:52:53 PM (13 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
88712e
Parents:
948e7f
Message:

removing menuitem will fail if window was closed, so just try to remove menuitems.

File:
1 edited

Legend:

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

    r948e7f rc95645  
    436436    {
    437437        if (!vI.tempStorage.BaseIdentity) return; // don't try to remove Item twice
    438         vI_msgIdentityClone.elements.Obj_MsgIdentity.firstChild.removeChild(vI.tempStorage.NewIdentity);
    439         vI.__setSelectedIdentity(vI.tempStorage.BaseIdentity);
     438        try {   // might not exist anymore (window closed), so just try to remove it
     439            vI_msgIdentityClone.elements.Obj_MsgIdentity.firstChild.removeChild(vI.tempStorage.NewIdentity);
     440            vI.__setSelectedIdentity(vI.tempStorage.BaseIdentity);
     441        } catch (e) { };
    440442        vI.tempStorage.NewIdentity = null;
    441443        vI.tempStorage.BaseIdentity = null;
Note: See TracChangeset for help on using the changeset viewer.