mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
Qt: bugfix for #14544 (Closing source editor tab with Ctrl-F4 sigsevs)
git-svn-id: trunk@21635 -
This commit is contained in:
parent
f0f61ca003
commit
61fe12c996
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user