mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:59:31 +02:00
Qt: fixed crash of dangling qt pointer from viewportWidget mouse event.issue #26466
git-svn-id: trunk@45820 -
This commit is contained in:
parent
90b2efe9f2
commit
3190993c19
@ -15911,9 +15911,12 @@ end;
|
||||
procedure TQtAbstractScrollArea.SetNoMousePropagation(Sender: QWidgetH;
|
||||
const ANoMousePropagation: Boolean);
|
||||
begin
|
||||
// keep it so because sender can be dangling pointer from qt inside
|
||||
// mouse event of viewportWidget ! issue #26466
|
||||
if Sender = viewportWidget then
|
||||
inherited SetNoMousePropagation(Sender, False)
|
||||
else
|
||||
if Sender = Widget then
|
||||
inherited SetNoMousePropagation(Sender, ANoMousePropagation);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user