зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 201077. Dragging a bookmark item to the last bookmark folder causes the application to hang.
r+sr=bryner
This commit is contained in:
Родитель
4d5ad9c75e
Коммит
1ee3454e9e
|
@ -3565,8 +3565,6 @@ nsTreeBodyFrame::ClearStyleAndImageCaches()
|
|||
NS_IMETHODIMP
|
||||
nsTreeBodyFrame::OnDragDrop (nsIDOMEvent* aEvent)
|
||||
{
|
||||
mView->Drop(mDropRow, mDropOrient);
|
||||
|
||||
// Remove the drop folder and all its parents from the array.
|
||||
PRInt32 parentIndex;
|
||||
mView->GetParentIndex(mDropRow, &parentIndex);
|
||||
|
@ -3575,6 +3573,8 @@ nsTreeBodyFrame::OnDragDrop (nsIDOMEvent* aEvent)
|
|||
mView->GetParentIndex(parentIndex, &parentIndex);
|
||||
}
|
||||
|
||||
mView->Drop(mDropRow, mDropOrient);
|
||||
|
||||
return NS_OK;
|
||||
} // OnDragDrop
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче