mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 08:59:13 +02:00
Qt5, Qt6: must use MenuVisibleIndex to be in order. issue #41429
This commit is contained in:
parent
9524056dbf
commit
7bfc63d9ed
@ -4759,7 +4759,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
AOk := False;
|
AOk := False;
|
||||||
AData := QVariant_toULongLong(AVariant, @AOk);
|
AData := QVariant_toULongLong(AVariant, @AOk);
|
||||||
if AIndex <= TMenuItem(AData).MenuIndex then
|
if AIndex <= TMenuItem(AData).MenuVisibleIndex then
|
||||||
begin
|
begin
|
||||||
Result := QActionH(ActionList[i]);
|
Result := QActionH(ActionList[i]);
|
||||||
exit;
|
exit;
|
||||||
|
@ -4762,7 +4762,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
AOk := False;
|
AOk := False;
|
||||||
AData := QVariant_toULongLong(AVariant, @AOk);
|
AData := QVariant_toULongLong(AVariant, @AOk);
|
||||||
if AIndex <= TMenuItem(AData).MenuIndex then
|
if AIndex <= TMenuItem(AData).MenuVisibleIndex then
|
||||||
begin
|
begin
|
||||||
Result := QActionH(ActionList[i]);
|
Result := QActionH(ActionList[i]);
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user