Bug 1438470 - Backed out changeset bbb96e5f8fa8 for being incorrect. nsITreeBoxObject::SetView() was restored in bug 1438512. a=jorgk

This commit is contained in:
Jorg K 2018-02-16 10:56:41 +01:00
Родитель defcc26ef8
Коммит 208fefda3d
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -59,6 +59,8 @@ NS_IMETHODIMP nsAbView::ClearView()
{
mDirectory = nullptr;
mAbViewListener = nullptr;
if (mTree)
mTree->SetView(nullptr);
mTree = nullptr;
mTreeSelection = nullptr;
@ -169,6 +171,7 @@ NS_IMETHODIMP nsAbView::SetView(nsIAbDirectory *aAddressBook,
{
// Try and speed deletion of old cards by disconnecting the tree from us.
mTreeSelection->ClearSelection();
mTree->SetView(nullptr);
}
// Clear out old cards