cocoa: sanity check before calling ProcessAsyncCallQueue

git-svn-id: trunk@61209 -
This commit is contained in:
dmitry 2019-05-12 01:27:48 +00:00
parent daa05e2732
commit f256ae1065

View File

@ -519,7 +519,8 @@ begin
begin
CheckSynchronize;
NSApp.updateWindows;
TCrackerApplication(Application).ProcessAsyncCallQueue;
if Assigned(Application) then
TCrackerApplication(Application).ProcessAsyncCallQueue;
Result := nil
end
else if ((mode = NSEventTrackingRunLoopMode) or mode.isEqualToString(NSEventTrackingRunLoopMode))