FIX: Bug [0000519] Quick filter is not cleaned after directory changing

This commit is contained in:
Alexander Koblov 2013-05-05 18:36:22 +00:00
commit dadbd0fbe7
2 changed files with 6 additions and 1 deletions

View file

@ -107,7 +107,6 @@ type
in the list on next reload.
}
FRequestedActiveFile: String;
FFileFilter: String;
FFilterOptions: TQuickSearchOptions;
FWatchPath: String;
FLastMark: String;
@ -187,6 +186,7 @@ type
procedure WatcherEvent(const EventData: TFSWatcherEventData);
protected
FFileFilter: String;
FAllDisplayFiles: TDisplayFiles; //<en List of all files that can be displayed
FFiles: TDisplayFiles; //<en List of displayed files (filtered)
FSavedSelection: TStringListEx;

View file

@ -128,6 +128,11 @@ const
procedure TOrderedFileView.AfterChangePath;
begin
if Filtered then
begin
FFileFilter:= EmptyStr;
quickSearch.Finalize;
end;
FLastActiveFileIndex := -1;
inherited AfterChangePath;
end;