mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 04:17:11 +01:00
IDE: Don't close a modified file in sourceeditor when user cancels the "File ... has changed. Save?" dialog by pressing Escape key. Issue #0030582. Patch by Michl, modified by me.
git-svn-id: trunk@52940 -
This commit is contained in:
parent
2feda7facc
commit
8e4b07024d
@ -2585,7 +2585,7 @@ begin
|
|||||||
if Result=mrYes then begin
|
if Result=mrYes then begin
|
||||||
Result:=SaveEditorFile(AnEditorInfo.EditorComponent,[sfCheckAmbiguousFiles]);
|
Result:=SaveEditorFile(AnEditorInfo.EditorComponent,[sfCheckAmbiguousFiles]);
|
||||||
end;
|
end;
|
||||||
if Result=mrAbort then exit;
|
if Result in [mrAbort,mrCancel] then exit;
|
||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user