mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 07:29:59 +02:00
Qt: Avoid double free (mem corruption) with native controls, fixes AV also with TQtTreeWidget under linux.
git-svn-id: trunk@14856 -
This commit is contained in:
parent
9bdd9bd85f
commit
f1997a7b80
@ -7137,7 +7137,7 @@ end;
|
||||
|
||||
procedure TQtAbstractScrollArea.setCursor(const ACursor: QCursorH);
|
||||
begin
|
||||
if LCLObject is TCustomControl then
|
||||
if (LCLObject is TCustomControl) and HasPaint then
|
||||
viewport.setCursor(ACursor)
|
||||
else
|
||||
inherited setCursor(ACursor);
|
||||
|
Loading…
Reference in New Issue
Block a user