mirror of https://gitlab.com/basile.b/dexed.git
fix, case issue could lead to file opened twice
This commit is contained in:
parent
48f2d9c2bc
commit
43564af3a3
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue