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:
zeljko 2008-04-17 07:44:33 +00:00
parent 9bdd9bd85f
commit f1997a7b80

View File

@ -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);