Changeset d0278d


Ignore:
Timestamp:
Aug 17, 2012, 6:17:27 PM (7 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
94490a
Parents:
0e9e4f
Message:

bugfix: gAccountManager might not be available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_smartIdentityCollection.js

    r0e9e4f rd0278d  
    385385                    var idKey = this._allIdentities.identityDataCollection[index].isExistingIdentity(true);
    386386                    if (idKey) {
    387                         var newFullName = gAccountManager.getIdentity(idKey).fullName;
     387                        var AccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"]
     388                          .getService(Components.interfaces.nsIMsgAccountManager);
     389                        var newFullName = AccountManager.getIdentity(idKey).fullName;
    388390                        this._allIdentities.identityDataCollection[index].fullName = newFullName;
    389391                        Log.debug("replaced Fullname of '" + this._allIdentities.identityDataCollection[index].email + "' with '" + newFullName + "'");
Note: See TracChangeset for help on using the changeset viewer.