소스 검색

Revert "Opening same file in a second window don't destroy any changes"

This reverts commit cf81682bbb0e0d28332c8bf2371c538d7afa2477
Margers 1 년 전
부모
커밋
dcdfad4dc2
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      packages/ide/fpviews.pas

+ 1 - 3
packages/ide/fpviews.pas

@@ -2217,9 +2217,7 @@ begin
     AFileName:='';
   New(Editor, Init(R, HSB, VSB, Indicator,AFileName));
   Editor^.GrowMode:=gfGrowHiX+gfGrowHiY;
-  {load from file if there is no other window with the same file }
-  if Editor^.Core^.GetBindingCount = 1 then
-    if LoadFile then
+  if LoadFile then
     begin
       if Editor^.LoadFile=false then
         ErrorBox(FormatStrStr(msg_errorreadingfile,AFileName),nil)