mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 02:36:23 +02:00
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:
parent
a9dab89451
commit
b4aa41e12e
@ -474,7 +474,7 @@ var
|
|||||||
CurrentTV: TLazSearchResultTV;
|
CurrentTV: TLazSearchResultTV;
|
||||||
begin
|
begin
|
||||||
CurrentTV := GetTreeView(ResultsNoteBook.PageIndex);
|
CurrentTV := GetTreeView(ResultsNoteBook.PageIndex);
|
||||||
if Assigned(CurrentTV) then begin
|
if Assigned(CurrentTV) and not (csDestroying in CurrentTV.ComponentState) then begin
|
||||||
SearchInListEdit.FilteredTreeview := CurrentTV;
|
SearchInListEdit.FilteredTreeview := CurrentTV;
|
||||||
SearchInListEdit.Filter := CurrentTV.SearchInListPhrases;
|
SearchInListEdit.Filter := CurrentTV.SearchInListPhrases;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user