fix
This commit is contained in:
parent
7049e36386
commit
873a81fc24
1 changed files with 4 additions and 0 deletions
|
|
@ -346,6 +346,10 @@ void module_reload(MwWidget box, MwWidget user, xl_node_t* node) {
|
|||
opaque_t* opaque = user->opaque;
|
||||
int i;
|
||||
|
||||
if(opaque->submenu != NULL) {
|
||||
activate(user, NULL, NULL);
|
||||
}
|
||||
|
||||
if(opaque->menu != NULL) recursive_free(opaque->menu);
|
||||
|
||||
opaque->menu = malloc(sizeof(*opaque->menu));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue