From 4c115648385402ead134ec6ac612217daa3032f1 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Fri, 1 Nov 2019 14:37:56 +0100 Subject: [PATCH] #4941 Workaround strange file name validation in "Export FLUXNUM/MULTINUM" dialog. Having an explicit filter for the default suffix (*.grdecl) removes the strange complaint about the default file name not being valid. --- .../ExportCommands/RicSaveEclipseInputVisibleCellsUi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputVisibleCellsUi.cpp b/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputVisibleCellsUi.cpp index d18d036c28..24d6125412 100644 --- a/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputVisibleCellsUi.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputVisibleCellsUi.cpp @@ -74,6 +74,8 @@ void RicSaveEclipseInputVisibleCellsUi::defineEditorAttribute( const caf::PdmFie if ( myAttr ) { myAttr->m_selectSaveFileName = true; + // Set GRDECL file filter as default + myAttr->m_fileSelectionFilter = "GRDECL files (*.grdecl);;All files (*.*)"; } } }