Changeset 7696bc


Ignore:
Timestamp:
Jan 30, 2008, 3:46:29 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
1da3bc
Parents:
29f98c
Message:

if Identity-Meu has no selected Item, it has to be set before Menu is synchronized (problem with seamonkey)

File:
1 edited

Legend:

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

    r29f98c r7696bc  
    5252    // the Virtual Identity is build upon
    5353    clone_Obj_MsgIdentity : function() {
     54        if (!vI_msgIdentityClone.elements.Obj_MsgIdentity.selectedItem) {
     55            vI_notificationBar.dump("## vI_msgIdentityClone: Obj_MsgIdentity.selectedItem not set, using first Menuitem\n");
     56            vI_msgIdentityClone.elements.Obj_MsgIdentity.selectedItem =
     57                vI_msgIdentityClone.elements.Obj_MsgIdentityPopup.firstChild
     58            vI_notificationBar.dump("## vI_msgIdentityClone: MsgIdentityPopup.doCommand()\n");
     59            vI_msgIdentityClone.elements.Obj_MsgIdentityPopup.doCommand();
     60        }
    5461        MenuItems = vI_msgIdentityClone.elements.Obj_MsgIdentityPopup.childNodes
    5562        for (index = 0; index < MenuItems.length; index++) {
     
    6168            // "accountname" property changed in Thunderbird 3.x, Seamonkey 1.5x to "description"
    6269            newMenuItem.setAttribute("accountname", vI.helper.getAccountname(newMenuItem))
    63         }
    64         if (!vI_msgIdentityClone.elements.Obj_MsgIdentity.selectedItem) {
    65             vI_notificationBar.dump("## vI_msgIdentityClone: Obj_MsgIdentity.selectedItem not set, using first Menuitem\n");
    66             vI_msgIdentityClone.elements.Obj_MsgIdentity.selectedItem =
    67                 vI_msgIdentityClone.elements.Obj_MsgIdentityPopup.firstChild
    68             vI_notificationBar.dump("## vI_msgIdentityClone: MsgIdentityPopup.doCommand()\n");
    69             vI_msgIdentityClone.elements.Obj_MsgIdentityPopup.doCommand();
    7070        }
    7171        vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
Note: See TracChangeset for help on using the changeset viewer.