Changeset 637de5


Ignore:
Timestamp:
Jan 6, 2010, 7:04:16 PM (12 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.8, ng_0.9
Children:
3366a3
Parents:
80a2bb
Message:

restore FolderDisplay? and FolderTree? - Selections after sending

File:
1 edited

Legend:

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

    r80a2bb r637de5  
    185185   
    186186    removeUsedVIAccount : function() {
     187        var mailWindow = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService()
     188            .QueryInterface(Components.interfaces.nsIWindowMediator)
     189            .getMostRecentWindow("mail:3pane");
     190        var selectedFolder = (mailWindow.gFolderTreeView)?mailWindow.gFolderTreeView.getSelectedFolders()[0]:null;
     191        var selectedMessages = (mailWindow.gFolderDisplay)?mailWindow.gFolderDisplay.selectedMessages:null;
    187192        if (vI_account.account) {
    188193            vI_account.__removeAccount(vI_account.account);
    189194            vI_account.account = null;
    190195        }
     196        try {
     197        if (selectedFolder) mailWindow.gFolderTreeView.selectFolder(selectedFolder);
     198        if (selectedMessages) mailWindow.gFolderDisplay.selectMessages(selectedMessages, false, false);
     199        } catch (e) { };
    191200    },
    192201   
Note: See TracChangeset for help on using the changeset viewer.