mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 22:37:26 +01:00
parent
74abf5658d
commit
2a973ceb54
@ -2915,8 +2915,13 @@ begin
|
||||
// set our modalresult to mrCancel before hiding.
|
||||
if ModalResult = 0 then
|
||||
ModalResult := mrCancel;
|
||||
Hide;
|
||||
// We should always re-enabled the forms before issuing Hide()
|
||||
// Because otherwise we will for a short amount of time have
|
||||
// all forms disabled, and some systems, like WinCE, will interprete this
|
||||
// as a problem in the application and hide it.
|
||||
// See bug 22718
|
||||
Screen.EnableForms(DisabledList);
|
||||
Hide;
|
||||
RestoreFocusedForm;
|
||||
end;
|
||||
finally
|
||||
|
||||
Loading…
Reference in New Issue
Block a user