mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 05:38:25 +02:00
Cocoa: Need to call WakeMainThread from nextEventMatching when quitting.
This commit is contained in:
parent
9d49199480
commit
245b5f1ece
@ -764,6 +764,8 @@ begin
|
||||
Application.MainForm.Close
|
||||
else
|
||||
Application.Terminate;
|
||||
if Assigned(WakeMainThread) then
|
||||
WakeMainThread(nil);
|
||||
end;
|
||||
// Let caller know if the shutdown was cancelled
|
||||
if (not Application.Terminated) and (replyEvent.descriptorType <> typeNull) then
|
||||
|
Loading…
Reference in New Issue
Block a user