IDE: fix a crash when a search results tab is closed while another tab is active.

git-svn-id: trunk@35328 -
This commit is contained in:
juha 2012-02-12 15:35:21 +00:00
parent a9dab89451
commit b4aa41e12e

View File

@ -474,7 +474,7 @@ var
CurrentTV: TLazSearchResultTV;
begin
CurrentTV := GetTreeView(ResultsNoteBook.PageIndex);
if Assigned(CurrentTV) then begin
if Assigned(CurrentTV) and not (csDestroying in CurrentTV.ComponentState) then begin
SearchInListEdit.FilteredTreeview := CurrentTV;
SearchInListEdit.Filter := CurrentTV.SearchInListPhrases;
end;