mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:19:37 +02:00
Qt5, Qt6: must use MenuVisibleIndex to be in order. issue #41429
(cherry picked from commit 7bfc63d9ed
)
Co-authored-by: zeljan1 <zeljko@holobit.hr>
This commit is contained in:
parent
6b51ba5323
commit
fd7ad406ae
@ -4759,7 +4759,7 @@ begin
|
||||
begin
|
||||
AOk := False;
|
||||
AData := QVariant_toULongLong(AVariant, @AOk);
|
||||
if AIndex <= TMenuItem(AData).MenuIndex then
|
||||
if AIndex <= TMenuItem(AData).MenuVisibleIndex then
|
||||
begin
|
||||
Result := QActionH(ActionList[i]);
|
||||
exit;
|
||||
|
@ -4762,7 +4762,7 @@ begin
|
||||
begin
|
||||
AOk := False;
|
||||
AData := QVariant_toULongLong(AVariant, @AOk);
|
||||
if AIndex <= TMenuItem(AData).MenuIndex then
|
||||
if AIndex <= TMenuItem(AData).MenuVisibleIndex then
|
||||
begin
|
||||
Result := QActionH(ActionList[i]);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user