Qt: bugfix for #14544 (Closing source editor tab with Ctrl-F4 sigsevs)

git-svn-id: trunk@21635 -
This commit is contained in:
zeljko 2009-09-09 18:12:05 +00:00
parent f0f61ca003
commit 61fe12c996

View File

@ -1857,6 +1857,20 @@ begin
end
else
QEvent_ignore(Event);
{$IF DEFINED(USE_QT_44) or DEFINED(USE_QT_45)}
{fixes #14544 and others when we loose our LCLObject
after delivering message to LCL.}
if (LCLObject = nil) and
((QEvent_type(Event) = QEventMouseButtonPress) or
(QEvent_type(Event) = QEventMouseButtonRelease) or
(QEvent_type(Event) = QEventMouseButtonDblClick) or
(QEvent_type(Event) = QEventMouseMove) or
(QEvent_type(Event) = QEventKeyPress) or
(QEvent_type(Event) = QEventKeyRelease)) then
BeginEventProcessing;
{$ENDIF}
EndEventProcessing;
end;