From b229645dd352c1b99bed8351ec5477214b735cc4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 18 Mar 2019 22:30:49 -0500 Subject: [PATCH] [nostalgia/studio] Fix OxFS tree view to only show current level of tree --- src/nostalgia/studio/lib/oxfstreeview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/studio/lib/oxfstreeview.cpp b/src/nostalgia/studio/lib/oxfstreeview.cpp index 164d9493..ffa5b1c7 100644 --- a/src/nostalgia/studio/lib/oxfstreeview.cpp +++ b/src/nostalgia/studio/lib/oxfstreeview.cpp @@ -40,8 +40,8 @@ OxFSFile::OxFSFile(PassThroughFS *fs, QString path, OxFSFile *parentItem) { } for (auto name : ls) { if (name != "." && name != "..") { - qDebug() << "name:" << m_path + name; - auto ch = new OxFSFile(fs, m_path + name, this); + const auto path = m_path.size() ? m_path + '/' + name : name; + auto ch = new OxFSFile(fs, path, this); m_childItems.push_back(ch); } }