Changeset b4094a


Ignore:
Timestamp:
Sep 2, 2008, 10:39:14 PM (11 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
219105
Parents:
0402f1
Message:

sometimes selectedItem is not yet available, so check this.

File:
1 edited

Legend:

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

    r0402f1 rb4094a  
    320320    initReplyToFields : function(id) {
    321321        // v_identity calls initReplyToFields in stage2 without id
    322         if (!id) id = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem.value;
    323 
     322        if (!id) {
     323            var selectedItem = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem;
     324            if (selectedItem) id = selectedItem.value;
     325            else {  // just wait a while and try again
     326                window.setTimeout(vI_msgIdentityClone.initReplyToFields, 100);
     327                return;
     328            }
     329        }
    324330        vI_notificationBar.dump("## vI_msgIdentityClone: initReplyToFields id=" + id + "\n");
    325331        var replyTo = vI_msgIdentityClone.AccountManager.getIdentity(id).replyTo
Note: See TracChangeset for help on using the changeset viewer.