summaryrefslogtreecommitdiffstats
path: root/gui/listbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/listbox.cpp')
-rw-r--r--gui/listbox.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/listbox.cpp b/gui/listbox.cpp
index 9d36baed7..9fbe09234 100644
--- a/gui/listbox.cpp
+++ b/gui/listbox.cpp
@@ -102,8 +102,10 @@ GUIListBox::GUIListBox(xml_node<>* node) : GUIScrollList(node)
item.selected = (child->value() == currentValue);
item.action = NULL;
xml_node<>* action = child->first_node("action");
+ if (!action)
+ action = child->first_node("actions");
if (action) {
- item.action = new GUIAction(action);
+ item.action = new GUIAction(child);
allowSelection = true;
}
xml_node<>* variable_name = child->first_node("data");