Add checks to OxFSTreeView to filter out . and .. entries

This commit is contained in:
Gary Talent 2017-09-10 03:45:23 -05:00
parent 71116f4be9
commit 34e0baff5a

View File

@ -27,10 +27,12 @@ OxFSFile::OxFSFile(FileSystem *fs, QString path, OxFSFile *parentItem) {
qSort(ls); qSort(ls);
} }
for (auto v : ls) { for (auto v : ls) {
if (v.name != "." && v.name != "..") {
auto ch = new OxFSFile(fs, m_path + "/" + v.name, this); auto ch = new OxFSFile(fs, m_path + "/" + v.name, this);
m_childItems.push_back(ch); m_childItems.push_back(ch);
} }
} }
}
} }
OxFSFile::~OxFSFile() { OxFSFile::~OxFSFile() {