- Fixed filter window to invalidate the current filters on delete/clear

This commit is contained in:
Andreas Schneider 2009-12-28 16:40:37 +01:00
parent 5f76073b39
commit 6edee941ee
2 changed files with 355 additions and 354 deletions

View File

@ -11,7 +11,6 @@
<MainUnit Value="0"/> <MainUnit Value="0"/>
<TargetFileExt Value=".exe"/> <TargetFileExt Value=".exe"/>
<Title Value="CentrED"/> <Title Value="CentrED"/>
<LFMResourceType Value="res"/>
<Icon Value="0"/> <Icon Value="0"/>
</General> </General>
<LazDoc Paths="../doc"/> <LazDoc Paths="../doc"/>

View File

@ -329,6 +329,7 @@ end;
procedure TfrmFilter.btnDeleteClick(Sender: TObject); procedure TfrmFilter.btnDeleteClick(Sender: TObject);
begin begin
vdtFilter.DeleteSelectedNodes; vdtFilter.DeleteSelectedNodes;
frmMain.InvalidateFilter;
end; end;
procedure TfrmFilter.cbHueFilterChange(Sender: TObject); procedure TfrmFilter.cbHueFilterChange(Sender: TObject);
@ -344,6 +345,7 @@ end;
procedure TfrmFilter.btnClearClick(Sender: TObject); procedure TfrmFilter.btnClearClick(Sender: TObject);
begin begin
vdtFilter.Clear; vdtFilter.Clear;
frmMain.InvalidateFilter;
end; end;
initialization initialization