diff --git a/src/ce_main.pas b/src/ce_main.pas index 6987f1f4..dbab2d00 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -3197,6 +3197,8 @@ begin exit; if fFreeProj.inGroup then exit; + if not fFreeProj.filename.fileExists then + exit; fProjectGroup.addProject(fFreeProj); fFreeProj := nil; end; diff --git a/src/ce_projgroup.pas b/src/ce_projgroup.pas index 3ad3b806..9e71deb3 100644 --- a/src/ce_projgroup.pas +++ b/src/ce_projgroup.pas @@ -534,6 +534,8 @@ procedure TCEProjectGroupWidget.btnAddUnfocusedClick(Sender: TObject); begin if fFreeProj = nil then exit; + if not fFreeProj.filename.fileExists then + exit; projectGroup.addProject(fFreeProj); fFreeProj := nil; updateList;