mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 12:29:29 +02:00
Qt: Fixed AppWaitMessage(), produced AV's sometimes because of pending events.
git-svn-id: trunk@12533 -
This commit is contained in:
parent
ce4864f3b7
commit
53066a6564
@ -138,7 +138,11 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TQtWidgetSet.AppWaitMessage;
|
||||
begin
|
||||
QCoreApplication_processEvents(QEventLoopWaitForMoreEvents);
|
||||
{we cannot call directly processEvents() with this flag
|
||||
since it produces AV's sometimes, so better check is there
|
||||
any pending event.}
|
||||
if not QCoreApplication_hasPendingEvents then
|
||||
QCoreApplication_processEvents(QEventLoopWaitForMoreEvents);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user