mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2755 Fix import dialog path filter matching
This commit is contained in:
parent
bc05621812
commit
b3ee1c1f9b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user