[nostalgia/studio] Fix OxFS tree view to only show current level of tree

This commit is contained in:
Gary Talent 2019-03-18 22:30:49 -05:00
parent f191ade18b
commit b229645dd3

View File

@ -40,8 +40,8 @@ OxFSFile::OxFSFile(PassThroughFS *fs, QString path, OxFSFile *parentItem) {
} }
for (auto name : ls) { for (auto name : ls) {
if (name != "." && name != "..") { if (name != "." && name != "..") {
qDebug() << "name:" << m_path + name; const auto path = m_path.size() ? m_path + '/' + name : name;
auto ch = new OxFSFile(fs, m_path + name, this); auto ch = new OxFSFile(fs, path, this);
m_childItems.push_back(ch); m_childItems.push_back(ch);
} }
} }