UPD: Cleanup

This commit is contained in:
Alexander Koblov 2014-07-17 03:00:54 +00:00
commit 8538f7bda2

View file

@ -2660,16 +2660,6 @@ begin
EnableWatcher(False);
// Workaround for Search Result File Source
if FileSource is TSearchResultFileSource then
begin
FHistory.Clear;
if NotebookPage is TFileViewPage then
begin
(NotebookPage as TFileViewPage).PermanentTitle:= EmptyStr;
end;
end;
FHistory.Add(aFileSource, aPath);
AfterChangePath;
@ -2707,15 +2697,6 @@ begin
FileSource.RemoveReloadEventListener(@ReloadEvent);
EnableWatcher(False);
// Workaround for Search Result File Source
if FileSource is TSearchResultFileSource then
begin
if NotebookPage is TFileViewPage then
begin
(NotebookPage as TFileViewPage).PermanentTitle:= EmptyStr;
end;
end;
FHistory.Clear;
AfterChangePath;
end