mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2129 Rft/Plt plot: Show formations on default, and not always
This commit is contained in:
@@ -98,6 +98,7 @@ RimWellRftPlot::RimWellRftPlot()
|
||||
|
||||
this->setAsPlotMdiWindow();
|
||||
m_selectedSourcesOrTimeStepsFieldsChanged = false;
|
||||
m_isOnLoad = true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -258,8 +259,6 @@ void RimWellRftPlot::updateFormationsOnPlot() const
|
||||
{
|
||||
if (m_wellLogPlot->trackCount() > 0)
|
||||
{
|
||||
m_wellLogPlot->trackByIndex(0)->setShowFormations(true);
|
||||
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimWellPath* wellPath = proj->wellPathByName(m_wellPathNameOrSimWellName);
|
||||
|
||||
@@ -1042,6 +1041,15 @@ QString RimWellRftPlot::description() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellRftPlot::onLoadDataAndUpdate()
|
||||
{
|
||||
if (m_isOnLoad)
|
||||
{
|
||||
if (m_wellLogPlot->trackCount() > 0)
|
||||
{
|
||||
m_wellLogPlot->trackByIndex(0)->setShowFormations(true);
|
||||
}
|
||||
|
||||
m_isOnLoad = false;
|
||||
}
|
||||
updateMdiWindowVisibility();
|
||||
updateFormationsOnPlot();
|
||||
m_wellLogPlot->loadDataAndUpdate();
|
||||
|
||||
Reference in New Issue
Block a user