mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-04 11:20:38 +01:00
LCL/SaveDialog: Fix unexpected behaviour when OnCanClose event is handled and returns CanClose=false. Issue #40297.
This commit is contained in:
parent
73a69089d9
commit
ccef4f2a79
@ -1475,7 +1475,10 @@ begin
|
||||
Result := S_OK;
|
||||
end
|
||||
else
|
||||
begin
|
||||
FDialog.UserChoice := mrNone;
|
||||
Result := S_FALSE;
|
||||
end;
|
||||
end;
|
||||
{$ifdef DebugCommonDialogEvents}
|
||||
debugln('TFileDialogEvents.OnFileOk End');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user