mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 12:20:25 +02:00
Menu designer: Don't toggle the Checked state of an AutoCheck menu item. Instead call real item's Click method. Issue #30689.
git-svn-id: trunk@53079 -
This commit is contained in:
parent
0814870e66
commit
45e651f472
@ -2668,9 +2668,8 @@ end;
|
||||
|
||||
procedure TShadowItem.MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
||||
begin
|
||||
if (Button = mbLeft) and FRealItem.AutoCheck then begin
|
||||
FRealItem.Checked:=not FRealItem.Checked;
|
||||
FParentBox.Repaint;
|
||||
if Button = mbLeft then begin
|
||||
FRealItem.Click;
|
||||
FShadowMenu.FEditorDesigner.PropertyEditorHook.RefreshPropertyValues;
|
||||
end;
|
||||
if (FState = dsSelected) then
|
||||
|
Loading…
Reference in New Issue
Block a user