mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
IDE: fixed ask save project changes No and Abort
git-svn-id: trunk@34732 -
This commit is contained in:
parent
2e2964e501
commit
039f1908af
@ -8337,7 +8337,8 @@ begin
|
||||
Result:=IDEQuestionDialog(lisProjectChanged,
|
||||
Format(lisSaveChangesToProject, [Project1.GetTitleOrName]),
|
||||
mtConfirmation, [mrYes, mrNoToAll, lisNo, mbCancel], '');
|
||||
if Result in [mrCancel,mrNoToAll] then exit(mrCancel);
|
||||
if Result=mrNoToAll then exit(mrOk);
|
||||
if Result<>mrYes then exit(mrCancel);
|
||||
end
|
||||
else if Project1.SessionStorage=pssNone then
|
||||
// only session data changed and session is not saved => skip
|
||||
@ -8350,7 +8351,8 @@ begin
|
||||
Result:=IDEQuestionDialog(lisProjectSessionChanged,
|
||||
Format(lisSaveSessionChangesToProject, [Project1.GetTitleOrName]),
|
||||
mtConfirmation, [mrYes, mrNoToAll, lisNo, mbCancel], '');
|
||||
if Result in [mrCancel,mrNoToAll] then exit(mrCancel);
|
||||
if Result=mrNoToAll then exit(mrOk);
|
||||
if Result<>mrYes then exit(mrCancel);
|
||||
end;
|
||||
end;
|
||||
Result:=DoSaveProject([sfCanAbort]);
|
||||
|
Loading…
Reference in New Issue
Block a user