mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 09:56:12 +02:00
Qt: Fixed TQtWidget.setCursor() crash under MacOsX
git-svn-id: trunk@14990 -
This commit is contained in:
parent
8e27baa639
commit
0e6090e646
@ -2366,6 +2366,10 @@ end;
|
|||||||
|
|
||||||
procedure TQtWidget.SetCursor(const ACursor: QCursorH);
|
procedure TQtWidget.SetCursor(const ACursor: QCursorH);
|
||||||
begin
|
begin
|
||||||
|
{$IFDEF DARWIN}
|
||||||
|
if not QWidget_isVisible(Widget) then
|
||||||
|
exit;
|
||||||
|
{$ENDIF}
|
||||||
if ACursor <> nil then
|
if ACursor <> nil then
|
||||||
QWidget_setCursor(Widget, ACursor)
|
QWidget_setCursor(Widget, ACursor)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user