mirror of https://gitlab.com/basile.b/dexed.git
fix #390 - crash when trying to reload a native dexed project not yet renamed to *.dprj
This commit is contained in:
parent
39d9ee85d1
commit
abace80fe4
|
@ -1055,9 +1055,11 @@ begin
|
||||||
if fProject.isNotEmpty and fProject.fileExists then
|
if fProject.isNotEmpty and fProject.fileExists then
|
||||||
begin
|
begin
|
||||||
dst.openProj(fProject);
|
dst.openProj(fProject);
|
||||||
|
if not assigned(dst.fProject) then
|
||||||
|
exit;
|
||||||
hdl := getMultiDocHandler;
|
hdl := getMultiDocHandler;
|
||||||
if assigned(hdl) then
|
if assigned(hdl) then
|
||||||
mem := hdl.findDocument(dst.fProject.filename);
|
mem := hdl.findDocument(dst.fProject.filename);
|
||||||
if mem.isNotNil then
|
if mem.isNotNil then
|
||||||
if dst.fProject.getFormat = pfDEXED then
|
if dst.fProject.getFormat = pfDEXED then
|
||||||
mem.Highlighter := LfmSyn
|
mem.Highlighter := LfmSyn
|
||||||
|
|
Loading…
Reference in New Issue