mirror of https://gitlab.com/basile.b/dexed.git
fix project modification not checked when opening from menu MRU
This commit is contained in:
parent
dfdb19e16a
commit
81a8982a42
|
@ -1576,6 +1576,9 @@ end;
|
||||||
|
|
||||||
procedure TCEMainForm.mruProjItemClick(Sender: TObject);
|
procedure TCEMainForm.mruProjItemClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
|
if fProject <> nil then if fProject.modified then if dlgOkCancel(
|
||||||
|
'The latest mdofifications are not saved, continue ?')
|
||||||
|
= mrCancel then exit;
|
||||||
openProj(TMenuItem(Sender).Hint);
|
openProj(TMenuItem(Sender).Hint);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1584,7 +1587,6 @@ begin
|
||||||
if fProject <> nil then if fProject.modified then if dlgOkCancel(
|
if fProject <> nil then if fProject.modified then if dlgOkCancel(
|
||||||
'The latest mdofifications are not saved, continue ?')
|
'The latest mdofifications are not saved, continue ?')
|
||||||
= mrCancel then exit;
|
= mrCancel then exit;
|
||||||
|
|
||||||
closeProj;
|
closeProj;
|
||||||
newProj;
|
newProj;
|
||||||
end;
|
end;
|
||||||
|
@ -1626,7 +1628,6 @@ begin
|
||||||
if fProject <> nil then if fProject.modified then if dlgOkCancel(
|
if fProject <> nil then if fProject.modified then if dlgOkCancel(
|
||||||
'The latest mdofifications are not saved, continue ?')
|
'The latest mdofifications are not saved, continue ?')
|
||||||
= mrCancel then exit;
|
= mrCancel then exit;
|
||||||
|
|
||||||
with TOpenDialog.Create(nil) do
|
with TOpenDialog.Create(nil) do
|
||||||
try
|
try
|
||||||
if execute then openProj(filename);
|
if execute then openProj(filename);
|
||||||
|
|
Loading…
Reference in New Issue