mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 07:42:59 +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
|
Application.MainForm.Close
|
||||||
else
|
else
|
||||||
Application.Terminate;
|
Application.Terminate;
|
||||||
|
if Assigned(WakeMainThread) then
|
||||||
|
WakeMainThread(nil);
|
||||||
end;
|
end;
|
||||||
// Let caller know if the shutdown was cancelled
|
// Let caller know if the shutdown was cancelled
|
||||||
if (not Application.Terminated) and (replyEvent.descriptorType <> typeNull) then
|
if (not Application.Terminated) and (replyEvent.descriptorType <> typeNull) then
|
||||||
|
Loading…
Reference in New Issue
Block a user