summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-23 22:57:14 +0100
committerthat <github@that.at>2015-02-23 22:57:14 +0100
commit72b90e39db50cc5d93af5204f4e17dc38f72ec6e (patch)
tree8aeb83b54125fdbb4d7b734309946b18909e3296 /gui
parentTheme: Add ability to disable size checking before backup (diff)
downloadandroid_bootable_recovery-72b90e39db50cc5d93af5204f4e17dc38f72ec6e.tar
android_bootable_recovery-72b90e39db50cc5d93af5204f4e17dc38f72ec6e.tar.gz
android_bootable_recovery-72b90e39db50cc5d93af5204f4e17dc38f72ec6e.tar.bz2
android_bootable_recovery-72b90e39db50cc5d93af5204f4e17dc38f72ec6e.tar.lz
android_bootable_recovery-72b90e39db50cc5d93af5204f4e17dc38f72ec6e.tar.xz
android_bootable_recovery-72b90e39db50cc5d93af5204f4e17dc38f72ec6e.tar.zst
android_bootable_recovery-72b90e39db50cc5d93af5204f4e17dc38f72ec6e.zip
Diffstat (limited to 'gui')
-rw-r--r--gui/fileselector.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/fileselector.cpp b/gui/fileselector.cpp
index 2602eb257..8f6a7fa72 100644
--- a/gui/fileselector.cpp
+++ b/gui/fileselector.cpp
@@ -47,7 +47,7 @@ GUIFileSelector::GUIFileSelector(xml_node<>* node) : GUIScrollList(node)
updateFileList = false;
// Load filter for filtering files (e.g. *.zip for only zips)
- child = node->first_node("filter");
+ child = FindNode(node, "filter");
if (child) {
attr = child->first_attribute("extn");
if (attr)
@@ -64,7 +64,7 @@ GUIFileSelector::GUIFileSelector(xml_node<>* node) : GUIScrollList(node)
}
// Handle the path variable
- child = node->first_node("path");
+ child = FindNode(node, "path");
if (child) {
attr = child->first_attribute("name");
if (attr)
@@ -77,7 +77,7 @@ GUIFileSelector::GUIFileSelector(xml_node<>* node) : GUIScrollList(node)
}
// Handle the result variable
- child = node->first_node("data");
+ child = FindNode(node, "data");
if (child) {
attr = child->first_attribute("name");
if (attr)
@@ -88,7 +88,7 @@ GUIFileSelector::GUIFileSelector(xml_node<>* node) : GUIScrollList(node)
}
// Handle the sort variable
- child = node->first_node("sort");
+ child = FindNode(node, "sort");
if (child) {
attr = child->first_attribute("name");
if (attr)
@@ -101,14 +101,14 @@ GUIFileSelector::GUIFileSelector(xml_node<>* node) : GUIScrollList(node)
}
// Handle the selection variable
- child = node->first_node("selection");
+ child = FindNode(node, "selection");
if (child && (attr = child->first_attribute("name")))
mSelection = attr->value();
else
mSelection = "0";
// Get folder and file icons if present
- child = node->first_node("icon");
+ child = FindNode(node, "icon");
if (child) {
mFolderIcon = LoadAttrImage(child, "folder");
mFileIcon = LoadAttrImage(child, "file");