diff --git a/ApplicationCode/Commands/RicFileHierarchyDialog.cpp b/ApplicationCode/Commands/RicFileHierarchyDialog.cpp index 98977a879b..653fdb4fb3 100644 --- a/ApplicationCode/Commands/RicFileHierarchyDialog.cpp +++ b/ApplicationCode/Commands/RicFileHierarchyDialog.cpp @@ -419,7 +419,9 @@ QStringList RicFileHierarchyDialog::createNameFilterList(const QString &fileName //-------------------------------------------------------------------------------------------------- bool RicFileHierarchyDialog::pathFilterMatch(const QString& pathFilter, const QString& relPath) { - QRegExp regexp(pathFilter, Qt::CaseInsensitive, QRegExp::Wildcard); + QString pattern = pathFilter; + if (relPath.endsWith(SEPARATOR) && !pathFilter.endsWith(SEPARATOR)) pattern += SEPARATOR; + QRegExp regexp(pattern, Qt::CaseInsensitive, QRegExp::Wildcard); return regexp.exactMatch(relPath); }