mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 23:30:22 +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;
|
AParent: QTabWidgetH;
|
||||||
begin
|
begin
|
||||||
AParent := getTabWidget;
|
AParent := getTabWidget;
|
||||||
if AParent <> nil then
|
if (AParent <> nil) and QWidget_isVisible(AParent) then
|
||||||
Result := QTabWidget_indexOf(AParent, Widget)
|
Result := QTabWidget_indexOf(AParent, Widget)
|
||||||
else
|
else
|
||||||
Result := -1;
|
Result := -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user