fix project modification not checked when opening from menu MRU

This commit is contained in:
Basile Burg 2014-11-02 01:58:21 +01:00
parent dfdb19e16a
commit 81a8982a42
1 changed files with 3 additions and 2 deletions

View File

@ -1576,6 +1576,9 @@ end;
procedure TCEMainForm.mruProjItemClick(Sender: TObject);
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);
end;
@ -1584,7 +1587,6 @@ begin
if fProject <> nil then if fProject.modified then if dlgOkCancel(
'The latest mdofifications are not saved, continue ?')
= mrCancel then exit;
closeProj;
newProj;
end;
@ -1626,7 +1628,6 @@ begin
if fProject <> nil then if fProject.modified then if dlgOkCancel(
'The latest mdofifications are not saved, continue ?')
= mrCancel then exit;
with TOpenDialog.Create(nil) do
try
if execute then openProj(filename);