Browse Source

UPD: Cleanup

Alexander Koblov 11 years ago
parent
commit
8538f7bda2
1 changed files with 0 additions and 19 deletions
  1. 0 19
      src/fileviews/ufileview.pas

+ 0 - 19
src/fileviews/ufileview.pas

@@ -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