mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 11:49:28 +02:00
LCL: TFilterComboBox: freenotification for ShellListView
git-svn-id: trunk@41453 -
This commit is contained in:
parent
1d2d0b6a26
commit
4a703f67f5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user