mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:29:34 +02:00
gtk interfaces: use GetCurrentThreadID to compare with MainThreadId, GetThreadID somehow returns a different value, fixes issue #14335)
git-svn-id: trunk@21622 -
This commit is contained in:
parent
463fff0bb4
commit
18ea81f368
@ -7434,7 +7434,7 @@ begin
|
||||
|
||||
FMessageQueue.AddMessage(AMessage);
|
||||
|
||||
if GetThreadID <> MainThreadID then
|
||||
if GetCurrentThreadId <> MainThreadID then
|
||||
begin
|
||||
// awake gtk loop
|
||||
// when the main thread is currently processing messages it will process
|
||||
|
Loading…
Reference in New Issue
Block a user