mirror of https://gitlab.com/basile.b/dexed.git
fix, error in temp runnable module, file could be reopened
This commit is contained in:
parent
2f8a485e4f
commit
59fe5d169b
|
@ -999,8 +999,10 @@ var
|
||||||
begin
|
begin
|
||||||
result := -1;
|
result := -1;
|
||||||
if fEditWidg = nil then exit;
|
if fEditWidg = nil then exit;
|
||||||
for i := 0 to fEditWidg.editorCount-1 do
|
for i := 0 to fEditWidg.editorCount-1 do begin
|
||||||
if fEditWidg.editor[i].fileName = aFilename then exit(i);
|
if fEditWidg.editor[i].fileName = aFilename then exit(i);
|
||||||
|
if fEditWidg.editor[i].tempFilename = aFilename then exit(i);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEMainForm.openFile(const aFilename: string);
|
procedure TCEMainForm.openFile(const aFilename: string);
|
||||||
|
|
Loading…
Reference in New Issue