mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 04:49:40 +02:00
Qt: prevent events recursion & crash in TQtComboBox.EventFilter() in some cases.
git-svn-id: trunk@18298 -
This commit is contained in:
parent
fc2bfdcd38
commit
b890746362
@ -6260,15 +6260,13 @@ var
|
||||
str: WideString;
|
||||
begin
|
||||
|
||||
BeginEventProcessing;
|
||||
Result := False;
|
||||
QEvent_accept(Event);
|
||||
|
||||
if LCLObject = nil then
|
||||
begin
|
||||
EndEventProcessing;
|
||||
exit;
|
||||
end;
|
||||
|
||||
BeginEventProcessing;
|
||||
|
||||
if (FDropList <> nil) and (Sender = FDropList.Widget) then
|
||||
begin
|
||||
@ -6288,6 +6286,11 @@ begin
|
||||
end else
|
||||
begin
|
||||
case QEvent_type(Event) of
|
||||
QEventHide:
|
||||
begin
|
||||
if getVisible then
|
||||
SlotShow(False);
|
||||
end;
|
||||
QEventPaint:
|
||||
begin
|
||||
if FOwnerDrawn and not getEditable then
|
||||
|
Loading…
Reference in New Issue
Block a user