mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 08:20:21 +02:00
Qt: fixed crash when asking for TQtPage.getIndex(), fixes #16302
git-svn-id: trunk@24752 -
This commit is contained in:
parent
5ee092816e
commit
d3da738464
@ -10431,7 +10431,7 @@ var
|
||||
AParent: QTabWidgetH;
|
||||
begin
|
||||
AParent := getTabWidget;
|
||||
if AParent <> nil then
|
||||
if (AParent <> nil) and QWidget_isVisible(AParent) then
|
||||
Result := QTabWidget_indexOf(AParent, Widget)
|
||||
else
|
||||
Result := -1;
|
||||
|
Loading…
Reference in New Issue
Block a user