Gtk2: fixed TGtk2WidgetSet.AppProcessMessages and Application.Idle(True) fail to call CheckSynchronize a second time.Patch by Ondrej Pokorny. issue #27662

git-svn-id: trunk@62989 -
This commit is contained in:
zeljko 2020-04-15 17:09:19 +00:00
parent f9d54cee6d
commit 5d0de1d6ab

View File

@ -2329,6 +2329,7 @@ var
vlMsg : PMSg;
i: Integer;
begin
vlMsg:=nil; //issue #27662
repeat
// send cached LCL messages to the gtk
//DebugLn(['TGtk2WidgetSet.AppProcessMessages SendCachedLCLMessages']);
@ -2413,6 +2414,8 @@ begin
// proceed until all messages are handled
until (not PendingGtkMessagesExists) or Application.Terminated;
if (vlMsg = nil) and IsMultiThread then //no message was handled -> CheckSynchronize. issue #27662
CheckSynchronize;
end;
{------------------------------------------------------------------------------