浏览代码

UPD: Cleanup

Alexander Koblov 11 年之前
父节点
当前提交
8538f7bda2
共有 1 个文件被更改,包括 0 次插入19 次删除
  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