mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
#2365 Replace PdmField<QString> with PdmField<caf::FilePath> for file path fields
Convert 11 file/directory path fields from QString to caf::FilePath across ProjectDataModel classes for type safety and consistent path handling. Fields converted: RimCalcScript::absoluteFileName, RimScriptCollection::directory, RimBinaryExportSettings::fileName, RimExportInputSettings::fileName, RimFractureExportSettings::fileName, RimReservoirCellResultsStorage::m_resultCacheFileName, RimProcess::m_workDir, RimWellIASettings::m_baseDir, RimPlotTemplateFileItem::m_absoluteFileName, RimWellMeasurement::m_filePath, RimFileWellPath::m_filePath.
This commit is contained in:
1 parent
394bc6c3df
commit
cbbcbb650c
28 files changed
+87
-77
No files matched your search
+2
-2
@@ -101,7 +101,7 @@ void RicSaveEclipseResultAsInputPropertyExec::redo()
|
||||
|
||||
QString errMsg;
|
||||
bool isOk =
|
||||
RicEclipseCellResultToFileImpl::writeBinaryResultToTextFile( exportSettings.fileName,
|
||||
RicEclipseCellResultToFileImpl::writeBinaryResultToTextFile( exportSettings.fileName().path(),
|
||||
m_cellColors->reservoirView()->eclipseCase()->eclipseCaseData(),
|
||||
timeStep,
|
||||
m_cellColors,
|
||||
@@ -113,7 +113,7 @@ void RicSaveEclipseResultAsInputPropertyExec::redo()
|
||||
if ( !isOk )
|
||||
{
|
||||
QString fullError =
|
||||
QString( "Failed to exported current result to %1. Error was: %2" ).arg( exportSettings.fileName ).arg( errMsg );
|
||||
QString( "Failed to exported current result to %1. Error was: %2" ).arg( exportSettings.fileName().path() ).arg( errMsg );
|
||||
RiaLogging::error( fullError );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user