mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
parent
14a0c83ae0
commit
4a8b50603e
9 changed files with 115 additions and 18 deletions
|
|
@ -279,7 +279,10 @@ fill_item(char *nodename, char *content)
|
|||
*/
|
||||
} else if (!strcmp(nodename, "name.action")) {
|
||||
current_item_action = action_create(content);
|
||||
wl_list_append(¤t_item->actions, ¤t_item_action->link);
|
||||
if (current_item_action) {
|
||||
wl_list_append(¤t_item->actions,
|
||||
¤t_item_action->link);
|
||||
}
|
||||
} else if (!current_item_action) {
|
||||
wlr_log(WLR_ERROR, "expect <action name=\"\"> element first. "
|
||||
"nodename: '%s' content: '%s'", nodename, content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue