LCL: TFilterComboBox: freenotification for ShellListView

git-svn-id: trunk@41453 -
This commit is contained in:
mattias 2013-05-30 06:52:22 +00:00
parent 1d2d0b6a26
commit 4a703f67f5

View File

@ -145,6 +145,8 @@ Type
procedure SetShellListView(const AValue: TShellListView);
protected
procedure Select; override;
procedure Notification(AComponent: TComponent; Operation: TOperation);
override;
public
{ Base methods }
constructor Create(TheOwner: TComponent); override;
@ -514,18 +516,31 @@ begin
FShellListView:=AValue;
if FShellListView <> nil then
FShellListView.Mask := Mask;
if FShellListView <> nil then begin
FShellListView.Mask := Mask;
FreeNotification(FShellListView);
end;
end;
procedure TCustomFilterComboBox.Select;
begin
if FShellListView <> nil then
FShellListView.Mask := Mask;
FShellListView.Mask := Mask;
inherited Select;
end;
procedure TCustomFilterComboBox.Notification(AComponent: TComponent;
Operation: TOperation);
begin
inherited Notification(AComponent, Operation);
if Operation=opRemove then
begin
if FShellListView=AComponent then
FShellListView:=nil;
end;
end;
{------------------------------------------------------------------------------
This is a parser that converts LCL filter strings to a TStringList