From 72b90e39db50cc5d93af5204f4e17dc38f72ec6e Mon Sep 17 00:00:00 2001 From: that Date: Mon, 23 Feb 2015 22:57:14 +0100 Subject: gui: fix missing icons in fileselector Style support was missing. Change-Id: I9a9a8c6a42e2a3d0dcdee871a639c9842a2ff668 --- gui/fileselector.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gui/fileselector.cpp') 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"); -- cgit v1.2.3