mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure seismic file reader is created in RiaApplication::loadProject()
This commit is contained in:
@@ -145,14 +145,6 @@ void RimSeismicData::logError( QString msg )
|
||||
m_nErrorsLogged++;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSeismicData::initAfterRead()
|
||||
{
|
||||
updateMetaData();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -498,6 +490,16 @@ std::pair<double, double> RimSeismicData::dataRangeMinMax() const
|
||||
return m_activeDataRange;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSeismicData::ensureFileReaderIsInitialized()
|
||||
{
|
||||
if ( !openFileIfNotOpen() ) return;
|
||||
|
||||
updateMetaData();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -69,9 +69,10 @@ public:
|
||||
|
||||
std::pair<double, double> dataRangeMinMax() const override;
|
||||
|
||||
void ensureFileReaderIsInitialized();
|
||||
|
||||
protected:
|
||||
void updateMetaData();
|
||||
void initAfterRead() override;
|
||||
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user