mirror of https://gitlab.com/basile.b/dexed.git
fix #122 - compile a runnable with not project opened, case of segfault
This commit is contained in:
parent
17fe5f62d5
commit
0aefd3341c
|
@ -2518,7 +2518,9 @@ begin
|
||||||
if fDoc.isTemporary then
|
if fDoc.isTemporary then
|
||||||
result := of_yes;
|
result := of_yes;
|
||||||
end
|
end
|
||||||
else if ifInProject in fRunnablesOptions.outputFolderConditions then
|
else if assigned(fProject) then
|
||||||
|
begin
|
||||||
|
if ifInProject in fRunnablesOptions.outputFolderConditions then
|
||||||
begin
|
begin
|
||||||
if fProject.isSource(fDoc.fileName) then
|
if fProject.isSource(fDoc.fileName) then
|
||||||
result := of_yes;
|
result := of_yes;
|
||||||
|
@ -2528,6 +2530,7 @@ begin
|
||||||
if not fProject.isSource(fDoc.fileName) and not fDoc.isTemporary then
|
if not fProject.isSource(fDoc.fileName) and not fDoc.isTemporary then
|
||||||
result := of_yes;
|
result := of_yes;
|
||||||
end;
|
end;
|
||||||
|
end
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue