зеркало из https://github.com/mozilla/pjs.git
fix 349569, crash closing stand-alone msg window opened from cross-folder saved search, sr=sspitzer, and fix history navigation in standalone message window, sr=mscott, 74959
This commit is contained in:
Родитель
6086bade7f
Коммит
b1d7c3ebf8
|
@ -5069,9 +5069,12 @@ NS_IMETHODIMP nsMsgDBView::NavigateStatus(nsMsgNavigationTypeValue motion, PRBoo
|
|||
PRBool enable = PR_FALSE;
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
nsMsgKey resultKey = nsMsgKey_None;
|
||||
PRInt32 index;
|
||||
PRInt32 index = nsMsgKey_None;
|
||||
nsMsgViewIndex resultIndex = nsMsgViewIndex_None;
|
||||
rv = mTreeSelection->GetCurrentIndex(&index);
|
||||
if (mTreeSelection)
|
||||
(void) mTreeSelection->GetCurrentIndex(&index);
|
||||
else
|
||||
index = FindViewIndex(m_currentlyDisplayedMsgKey);
|
||||
|
||||
// warning - we no longer validate index up front because fe passes in -1 for no
|
||||
// selection, so if you use index, be sure to validate it before using it
|
||||
|
@ -5794,6 +5797,8 @@ nsresult nsMsgDBView::CopyDBView(nsMsgDBView *aNewMsgDBView, nsIMessenger *aMess
|
|||
NS_ENSURE_ARG_POINTER(aNewMsgDBView);
|
||||
|
||||
aNewMsgDBView->mMsgWindow = aMsgWindow;
|
||||
if (aMsgWindow)
|
||||
aMsgWindow->SetOpenFolder(m_viewFolder? m_viewFolder : m_folder);
|
||||
aNewMsgDBView->mMessengerInstance = aMessengerInstance;
|
||||
aNewMsgDBView->mCommandUpdater = aCmdUpdater;
|
||||
aNewMsgDBView->m_folder = m_folder;
|
||||
|
|
|
@ -118,7 +118,7 @@ nsMsgXFVirtualFolderDBView::CopyDBView(nsMsgDBView *aNewMsgDBView, nsIMessenger
|
|||
newMsgDBView->m_viewFolder = m_viewFolder;
|
||||
newMsgDBView->m_numUnread = m_numUnread;
|
||||
newMsgDBView->m_numTotal = m_numTotal;
|
||||
|
||||
newMsgDBView->m_searchSession = m_searchSession;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
nsCOMPtr <nsIMsgFolder> m_viewFolder;
|
||||
PRUint32 m_cachedFolderArrayIndex; // array index of next folder with cached hits to deal with.
|
||||
nsCOMArray<nsIMsgFolder> m_foldersWithNonVerifiedCachedHits;
|
||||
nsCOMArray<nsIMsgDBHdr> m_hdrHits;
|
||||
|
|
Загрузка…
Ссылка в новой задаче