mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 15:21:18 +02:00
Menu designer: Prevent AV (occurs with SpartaDockedFormEditor) when sub menu is inserted after new menu item was inserted.
git-svn-id: trunk@53852 -
This commit is contained in:
parent
b8e6ac48a0
commit
37df3d9157
@ -2026,6 +2026,7 @@ begin
|
|||||||
GlobalDesignHook.PersistentAdded(newMI, not isSeparator);
|
GlobalDesignHook.PersistentAdded(newMI, not isSeparator);
|
||||||
//GlobalDesignHook.Modified(newMI);
|
//GlobalDesignHook.Modified(newMI);
|
||||||
FShadowMenu.FDesigner.FGui.AddingItem := False;
|
FShadowMenu.FDesigner.FGui.AddingItem := False;
|
||||||
|
FShadowMenu.SetSelectedMenuItem(newMI, False, False);
|
||||||
if not isSeparator then
|
if not isSeparator then
|
||||||
FShadowMenu.FDesigner.FGui.UpdateStatistics;
|
FShadowMenu.FDesigner.FGui.UpdateStatistics;
|
||||||
FShadowMenu.UpdateActionsEnabledness;
|
FShadowMenu.UpdateActionsEnabledness;
|
||||||
|
Loading…
Reference in New Issue
Block a user