mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:49:18 +02:00
Qt: fixed potential crash with TQtHintWindow
git-svn-id: trunk@34493 -
This commit is contained in:
parent
c4a6edc657
commit
672a0f0798
@ -14258,8 +14258,12 @@ begin
|
||||
if QDesktopWidget_isVirtualDesktop(QApplication_desktop()) then
|
||||
ScreenNumber := QDesktopWidget_screenNumber(QApplication_desktop(), @P)
|
||||
else
|
||||
ScreenNumber := QDesktopWidget_screenNumber(QApplication_desktop(), Widget);
|
||||
|
||||
begin
|
||||
if Widget <> nil then
|
||||
ScreenNumber := QDesktopWidget_screenNumber(QApplication_desktop(), Widget)
|
||||
else
|
||||
ScreenNumber := 0;
|
||||
end;
|
||||
{$IFDEF DARWIN}
|
||||
QDesktopWidget_availableGeometry(QApplication_desktop() ,@D, ScreenNumber);
|
||||
{$ELSE}
|
||||
|
Loading…
Reference in New Issue
Block a user