mirror of https://gitlab.com/basile.b/dexed.git
fix, prevent temp module to be added to a project
This commit is contained in:
parent
350414262b
commit
dde0d58921
|
@ -1078,7 +1078,7 @@ begin
|
||||||
if fDoc.isProjectSource then exit;
|
if fDoc.isProjectSource then exit;
|
||||||
if fProject = nil 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)
|
fProject.addSource(fDoc.fileName)
|
||||||
else dlgOkInfo('the file has not been added to the project because it does not exist');
|
else dlgOkInfo('the file has not been added to the project because it does not exist');
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue