fix, case issue could lead to file opened twice

This commit is contained in:
Basile Burg 2015-01-09 02:07:38 +01:00
parent 48f2d9c2bc
commit 43564af3a3
1 changed files with 2 additions and 2 deletions

View File

@ -1012,8 +1012,8 @@ begin
result := -1;
if fEditWidg = nil then exit;
for i := 0 to fEditWidg.editorCount-1 do begin
if fEditWidg.editor[i].fileName = aFilename then exit(i);
if fEditWidg.editor[i].tempFilename = aFilename then exit(i);
if SameText(fEditWidg.editor[i].fileName, aFilename) then exit(i);
if SameText(fEditWidg.editor[i].tempFilename, aFilename) then exit(i);
end;
end;