mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
File hierarchy dialog. Trim extensions
This commit is contained in:
@@ -229,7 +229,12 @@ QString RicFileHierarchyDialog::fileNameFilter() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QStringList RicFileHierarchyDialog::fileExtensions() const
|
||||
{
|
||||
return m_fileExtension->text().split("|");
|
||||
QStringList exts = m_fileExtension->text().split("|");
|
||||
for (QString& ext : exts)
|
||||
{
|
||||
ext = ext.trimmed();
|
||||
}
|
||||
return exts;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user