Merge pull request #4637 from aws-lumberyard-dev/cgalvan/FixPythonScriptsTreeItems

Fixed logic error causing Python Scripts tree items to only show extension intead of filename.
This commit is contained in:
Chris Galvan
2021-10-12 15:30:57 -05:00
committed by GitHub
+1 -1
View File
@@ -279,7 +279,7 @@ void CFolderTreeCtrl::LoadTreeRec(const QString& currentFolder)
void CFolderTreeCtrl::AddItem(const QString& path)
{
AZ::IO::FixedMaxPath folder{ AZ::IO::PathView(path.toUtf8().constData()) };
AZ::IO::FixedMaxPath fileNameWithoutExtension = folder.Extension();
AZ::IO::FixedMaxPath fileNameWithoutExtension = folder.Stem();
folder = folder.ParentPath();
auto regex = QRegExp(m_fileNameSpec, Qt::CaseInsensitive, QRegExp::Wildcard);