Changeset 9fe49e


Ignore:
Timestamp:
Mar 6, 2010, 2:16:19 PM (10 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.8, ng_0.9
Children:
88d969f
Parents:
a5690b
Message:

it's not sure that we have an mailWindow

File:
1 edited

Legend:

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

    ra5690b r9fe49e  
    188188            .QueryInterface(Components.interfaces.nsIWindowMediator)
    189189            .getMostRecentWindow("mail:3pane");
    190         var selectedFolder = (mailWindow.gFolderTreeView)?mailWindow.gFolderTreeView.getSelectedFolders()[0]:null;
    191         var selectedMessages = (mailWindow.gFolderDisplay)?mailWindow.gFolderDisplay.selectedMessages:null;
     190        if (mailWindow) {               // it's not sure that we have an open 3-pane-window
     191            var selectedFolder = (mailWindow.gFolderTreeView)?mailWindow.gFolderTreeView.getSelectedFolders()[0]:null;
     192            var selectedMessages = (mailWindow.gFolderDisplay)?mailWindow.gFolderDisplay.selectedMessages:null;
     193        }
    192194        if (vI_account.account) {
    193195            vI_account.__removeAccount(vI_account.account);
Note: See TracChangeset for help on using the changeset viewer.