From e09c9c8450d7508c4ad99935d06ffd60fd7ac1ac Mon Sep 17 00:00:00 2001 From: zeljko Date: Wed, 27 Aug 2008 07:05:14 +0000 Subject: [PATCH] Qt: fix for various crashes 32/64bit.We don't use eventprocessing on timers anymore, also there's a small fix to appWaitMessage().Tnx to Terry Kemp for issue investigation on 64bit. git-svn-id: trunk@16264 - --- lcl/interfaces/qt/qtobject.inc | 2 +- lcl/interfaces/qt/qtobjects.pas | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lcl/interfaces/qt/qtobject.inc b/lcl/interfaces/qt/qtobject.inc index c26055873c..d2610aa99a 100644 --- a/lcl/interfaces/qt/qtobject.inc +++ b/lcl/interfaces/qt/qtobject.inc @@ -166,7 +166,7 @@ begin since it produces AV's sometimes, so better check is there any pending event.} if not QCoreApplication_hasPendingEvents then - QCoreApplication_processEvents(QEventLoopWaitForMoreEvents or QEventLoopDeferredDeletion); + QCoreApplication_processEvents(QEventLoopWaitForMoreEvents); end; {------------------------------------------------------------------------------ diff --git a/lcl/interfaces/qt/qtobjects.pas b/lcl/interfaces/qt/qtobjects.pas index 016f8802c3..e771922291 100644 --- a/lcl/interfaces/qt/qtobjects.pas +++ b/lcl/interfaces/qt/qtobjects.pas @@ -3224,7 +3224,6 @@ end; ------------------------------------------------------------------------------} function TQtTimer.EventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl; begin - BeginEventProcessing; Result := False; if QEvent_type(Event) = QEventTimer then @@ -3236,7 +3235,6 @@ begin if Assigned(FCallbackFunc) then FCallbackFunc; end; - EndEventProcessing; end; { TQtIcon }