summaryrefslogtreecommitdiffstats
path: root/gui/listbox.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2018-07-25 16:52:17 +0200
committerEthan Yonker <dees_troy@teamw.in>2019-03-20 21:42:49 +0100
commit64e0a6525f6f82a67649602de3fe1ad62c837c27 (patch)
treec3bd4dfd1d72cb4da8b4fad97bf4861406bb850f /gui/listbox.cpp
parentMerge "Update FDE decrypt to pie from CAF" into android-9.0 (diff)
downloadandroid_bootable_recovery-64e0a6525f6f82a67649602de3fe1ad62c837c27.tar
android_bootable_recovery-64e0a6525f6f82a67649602de3fe1ad62c837c27.tar.gz
android_bootable_recovery-64e0a6525f6f82a67649602de3fe1ad62c837c27.tar.bz2
android_bootable_recovery-64e0a6525f6f82a67649602de3fe1ad62c837c27.tar.lz
android_bootable_recovery-64e0a6525f6f82a67649602de3fe1ad62c837c27.tar.xz
android_bootable_recovery-64e0a6525f6f82a67649602de3fe1ad62c837c27.tar.zst
android_bootable_recovery-64e0a6525f6f82a67649602de3fe1ad62c837c27.zip
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");