From 620fc3d2a0bb6023028d6f3055d933531745f857 Mon Sep 17 00:00:00 2001 From: Dmitry Karasik Date: Sat, 5 Oct 2024 18:46:02 +0200 Subject: [PATCH] call apc_menu_update only once per new object --- class/AbstractMenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/AbstractMenu.c b/class/AbstractMenu.c index 8a99b0cbe..f6419124d 100644 --- a/class/AbstractMenu.c +++ b/class/AbstractMenu.c @@ -756,7 +756,7 @@ AbstractMenu_set_items( Handle self, SV * items) PMenuItemReg oldBranch = var-> tree; if ( var-> stage > csFrozen) return; var-> tree = ( PMenuItemReg) my-> new_menu( self, items, 0, NULL); - if ( var-> stage <= csNormal && var-> system) + if ( var-> stage == csNormal && var-> system) apc_menu_update( self, oldBranch, var-> tree); my-> dispose_menu( self, oldBranch); notify( self, "