Changeset 8d1159


Ignore:
Timestamp:
Apr 21, 2008, 1:57:51 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
d3c905
Parents:
9dfc10
Message:

bugfix, prevented storing of Identities.
now default Identity is not saved as defined one

File:
1 edited

Legend:

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

    r9dfc10 r8d1159  
    202202    updateRDFFromVIdentity : function(recDescription, recType) {
    203203        var address = vI_helper.getAddress();   
    204         var id_key = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.getAttribute("oldvalue");
    205         if (!id_key) id_key = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.getAttribute("value");
    206         var smtp_key = vI_smtpSelector.elements.Obj_SMTPServerList.selectedItem.getAttribute("key");
     204        var id = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.getAttribute("oldvalue");
     205        if (!id) id = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.getAttribute("value");
     206        // unset id if using default identity
     207        if (id == gAccountManager.defaultAccount.defaultIdentity.key) id = null;
     208        var smtp = vI_smtpSelector.elements.Obj_SMTPServerList.selectedItem.getAttribute("key");
    207209        var extras = new vI_storageExtras();
    208210        extras.readValues(); // initialize with current MsgComposeDialog Values
Note: See TracChangeset for help on using the changeset viewer.