зеркало из https://github.com/mozilla/pjs.git
Fix topcrash when selection changes in an unusual way b=415601 r+sr=dmose
This commit is contained in:
Родитель
4f2f045052
Коммит
4dc1feb955
|
@ -1017,11 +1017,14 @@ NS_IMETHODIMP nsMsgDBView::SelectionChanged()
|
|||
|
||||
PRUint32 numSelected = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
GetNumSelected(&numSelected);
|
||||
#endif
|
||||
nsMsgViewIndexArray selection;
|
||||
GetSelectedIndices(selection);
|
||||
nsMsgViewIndex *indices = selection.Elements();
|
||||
NS_ASSERTION(numSelected == selection.Length(), "selected indices is not equal to num of msg selected!!!");
|
||||
numSelected = selection.Length();
|
||||
|
||||
PRBool commandsNeedDisablingBecauseOfSelection = PR_FALSE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче