Bug 1438470 - Backed out changeset bbb96e5f8fa8 for being incorrect. nsITreeBoxObject::SetView() was restored in bug 1438512. a=jorgk
This commit is contained in:
Родитель
defcc26ef8
Коммит
208fefda3d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче