gui: fix missing icons in fileselector
Style support was missing.
Change-Id: I9a9a8c6a42e2a3d0dcdee871a639c9842a2ff668
diff --git a/gui/fileselector.cpp b/gui/fileselector.cpp
index 2602eb2..8f6a7fa 100644
--- a/gui/fileselector.cpp
+++ b/gui/fileselector.cpp
@@ -47,7 +47,7 @@
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 @@
}
// 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 @@
}
// 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 @@
}
// 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 @@
}
// 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");