From 34e0baff5a3925a914818bff2b305ea702c06052 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 10 Sep 2017 03:45:23 -0500 Subject: [PATCH] Add checks to OxFSTreeView to filter out . and .. entries --- src/nostalgia/studio/lib/oxfstreeview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/studio/lib/oxfstreeview.cpp b/src/nostalgia/studio/lib/oxfstreeview.cpp index b29a96fb..5e83cd5d 100644 --- a/src/nostalgia/studio/lib/oxfstreeview.cpp +++ b/src/nostalgia/studio/lib/oxfstreeview.cpp @@ -27,8 +27,10 @@ OxFSFile::OxFSFile(FileSystem *fs, QString path, OxFSFile *parentItem) { qSort(ls); } for (auto v : ls) { - auto ch = new OxFSFile(fs, m_path + "/" + v.name, this); - m_childItems.push_back(ch); + if (v.name != "." && v.name != "..") { + auto ch = new OxFSFile(fs, m_path + "/" + v.name, this); + m_childItems.push_back(ch); + } } } }