fix, save all, a temp module could be saved with <New Document> name, while valid fname for the OS its not for dmd

This commit is contained in:
Basile Burg 2015-11-23 16:17:30 +01:00
parent dfd6470537
commit 830c55b15a
1 changed files with 1 additions and 1 deletions

View File

@ -1392,7 +1392,7 @@ procedure TCEMainForm.saveFile(aDocument: TCESynMemo);
begin
if aDocument.Highlighter = LfmSyn then
saveProjSource(aDocument)
else if aDocument.fileName <> '' then
else if fileExists(aDocument.fileName) then
aDocument.save;
end;