mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Set date to None on update if timestep vector is empty
This commit is contained in:
parent
a8abe32b79
commit
d8bc1a7be1
@ -177,6 +177,10 @@ void RimWellLogRftCurve::setDefaultAddress(QString wellName)
|
||||
{
|
||||
m_timeStep = timeSteps[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
m_timeStep = QDateTime();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -397,6 +401,10 @@ void RimWellLogRftCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedFiel
|
||||
}
|
||||
else if (changedField == &m_wellLogChannelName)
|
||||
{
|
||||
if (m_wellLogChannelName == RifEclipseRftAddress::NONE)
|
||||
{
|
||||
m_timeStep = QDateTime();
|
||||
}
|
||||
this->loadDataAndUpdate(true);
|
||||
}
|
||||
else if (changedField == &m_timeStep)
|
||||
|
Loading…
Reference in New Issue
Block a user