mirror of https://gitlab.com/basile.b/dexed.git
prevent to add the FSP to the group if not yet saved
This commit is contained in:
parent
b7a74c2e0c
commit
42fa9149b0
|
|
@ -3197,6 +3197,8 @@ begin
|
||||||
exit;
|
exit;
|
||||||
if fFreeProj.inGroup then
|
if fFreeProj.inGroup then
|
||||||
exit;
|
exit;
|
||||||
|
if not fFreeProj.filename.fileExists then
|
||||||
|
exit;
|
||||||
fProjectGroup.addProject(fFreeProj);
|
fProjectGroup.addProject(fFreeProj);
|
||||||
fFreeProj := nil;
|
fFreeProj := nil;
|
||||||
end;
|
end;
|
||||||
|
|
|
||||||
|
|
@ -534,6 +534,8 @@ procedure TCEProjectGroupWidget.btnAddUnfocusedClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
if fFreeProj = nil then
|
if fFreeProj = nil then
|
||||||
exit;
|
exit;
|
||||||
|
if not fFreeProj.filename.fileExists then
|
||||||
|
exit;
|
||||||
projectGroup.addProject(fFreeProj);
|
projectGroup.addProject(fFreeProj);
|
||||||
fFreeProj := nil;
|
fFreeProj := nil;
|
||||||
updateList;
|
updateList;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue