mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 15:56:00 +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;
|
vlMsg : PMSg;
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
|
vlMsg:=nil; //issue #27662
|
||||||
repeat
|
repeat
|
||||||
// send cached LCL messages to the gtk
|
// send cached LCL messages to the gtk
|
||||||
//DebugLn(['TGtk2WidgetSet.AppProcessMessages SendCachedLCLMessages']);
|
//DebugLn(['TGtk2WidgetSet.AppProcessMessages SendCachedLCLMessages']);
|
||||||
@ -2413,6 +2414,8 @@ begin
|
|||||||
|
|
||||||
// proceed until all messages are handled
|
// proceed until all messages are handled
|
||||||
until (not PendingGtkMessagesExists) or Application.Terminated;
|
until (not PendingGtkMessagesExists) or Application.Terminated;
|
||||||
|
if (vlMsg = nil) and IsMultiThread then //no message was handled -> CheckSynchronize. issue #27662
|
||||||
|
CheckSynchronize;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user