mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 07:09:28 +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;
|
str: WideString;
|
||||||
begin
|
begin
|
||||||
|
|
||||||
BeginEventProcessing;
|
|
||||||
Result := False;
|
Result := False;
|
||||||
QEvent_accept(Event);
|
QEvent_accept(Event);
|
||||||
|
|
||||||
if LCLObject = nil then
|
if LCLObject = nil then
|
||||||
begin
|
|
||||||
EndEventProcessing;
|
|
||||||
exit;
|
exit;
|
||||||
end;
|
|
||||||
|
BeginEventProcessing;
|
||||||
|
|
||||||
if (FDropList <> nil) and (Sender = FDropList.Widget) then
|
if (FDropList <> nil) and (Sender = FDropList.Widget) then
|
||||||
begin
|
begin
|
||||||
@ -6288,6 +6286,11 @@ begin
|
|||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
case QEvent_type(Event) of
|
case QEvent_type(Event) of
|
||||||
|
QEventHide:
|
||||||
|
begin
|
||||||
|
if getVisible then
|
||||||
|
SlotShow(False);
|
||||||
|
end;
|
||||||
QEventPaint:
|
QEventPaint:
|
||||||
begin
|
begin
|
||||||
if FOwnerDrawn and not getEditable then
|
if FOwnerDrawn and not getEditable then
|
||||||
|
Loading…
Reference in New Issue
Block a user