fix, prevent temp module to be added to a project

This commit is contained in:
Basile Burg 2015-05-10 03:21:30 +02:00
parent 350414262b
commit dde0d58921
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ begin
if fDoc.isProjectSource then exit;
if fProject = nil then exit;
//
if fileExists(fDoc.fileName) then
if fileExists(fDoc.fileName) and (not fDoc.isTemporary) then
fProject.addSource(fDoc.fileName)
else dlgOkInfo('the file has not been added to the project because it does not exist');
end;