Export Sector Model: Add file path

* Export Sector Model: Add file path
* Avoid abort if a file cannot be opened
* Add missing return
This commit is contained in:
Magne Sjaastad
2022-11-28 11:57:00 +01:00
committed by GitHub
parent 2ba3191539
commit 86af2b4dfc
5 changed files with 66 additions and 72 deletions

View File

@@ -501,10 +501,10 @@ void RifEclipseInputFileTools::saveFault( QString
const cvf::Vec3st& refinement )
{
QFile exportFile( completeFilename );
if ( !exportFile.open( QIODevice::WriteOnly | QIODevice::Text ) )
{
RiaLogging::error( "Could not open the file : " + completeFilename );
return;
}
QTextStream stream( &exportFile );