Commit dbe072e7 authored by Juha Manninen's avatar Juha Manninen
Browse files

Menu designer: Call GlobalDesignHook.Modified after adding an item. Issue #31791.

git-svn-id: trunk@54874 -
parent b5251d21
......@@ -1954,13 +1954,14 @@ begin
newMI.Name:=FShadowMenu.FEditorDesigner.CreateUniqueComponentName(newMI.ClassName);
if isSeparator then
newMI.Caption:=cLineCaption
else newMI.Caption:=newMI.Name;
else
newMI.Caption:=newMI.Name;
existingSI.RealItem.Parent.Insert(idx, newMI);
TShadowItem.CreateWithBoxAndItem(FShadowMenu, existingSI.ParentBox, newMI);
FShadowMenu.UpdateBoxLocationsAndSizes;
FShadowMenu.FDesigner.FGui.AddingItem := True;
GlobalDesignHook.PersistentAdded(newMI, not isSeparator);
//GlobalDesignHook.Modified(newMI);
GlobalDesignHook.Modified(newMI);
FShadowMenu.FDesigner.FGui.AddingItem := False;
FShadowMenu.SetSelectedMenuItem(newMI, False, False);
if not isSeparator then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment