#6525 Export parameter : Add .GRDECL as default file name extension

Support both upper and lower case of *.GRDECL in file filter when specifying save file name
This commit is contained in:
Magne Sjaastad
2021-10-14 14:36:06 +02:00
parent 7c7be7a846
commit d440e260c0
5 changed files with 20 additions and 19 deletions

View File

@@ -43,11 +43,11 @@ void RimBinaryExportSettings::defineEditorAttribute( const caf::PdmFieldHandle*
{
if ( field == &fileName )
{
caf::PdmUiFilePathEditorAttribute* myAttr = dynamic_cast<caf::PdmUiFilePathEditorAttribute*>( attribute );
auto* myAttr = dynamic_cast<caf::PdmUiFilePathEditorAttribute*>( attribute );
if ( myAttr )
{
myAttr->m_selectSaveFileName = true;
myAttr->m_fileSelectionFilter = "Text files (*.txt);;All files (*.*)";
myAttr->m_fileSelectionFilter = "GRDECL files (*.grdecl *.GRDECL);;All files (*.*)";
}
}
}