mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 09:38:12 +02:00
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:
parent
f9d54cee6d
commit
5d0de1d6ab
@ -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;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user