From d8bc1a7be1d56343d9ce150d2ee8e64c6cd50591 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Fri, 27 Oct 2017 12:15:48 +0200 Subject: [PATCH] Set date to None on update if timestep vector is empty --- ApplicationCode/ProjectDataModel/RimWellLogRftCurve.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogRftCurve.cpp b/ApplicationCode/ProjectDataModel/RimWellLogRftCurve.cpp index 3a1bbb490c..1a8c397ec3 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogRftCurve.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogRftCurve.cpp @@ -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)