mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#4093 RFT Plot : Not possible to select both RFT and Grid as source at the same time
Avoid updating the UI selections based on curves in defineUiOrdering
This commit is contained in:
parent
a0c983a84e
commit
4eea7e91ee
@ -105,7 +105,6 @@ RimWellRftPlot::RimWellRftPlot()
|
||||
m_selectedTimeSteps.uiCapability()->setAutoAddingOptionFromValue(false);
|
||||
|
||||
this->setAsPlotMdiWindow();
|
||||
m_selectedSourcesOrTimeStepsFieldsChanged = false;
|
||||
m_isOnLoad = true;
|
||||
}
|
||||
|
||||
@ -682,10 +681,7 @@ void RimWellRftPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
if (changedField == &m_wellPathNameOrSimWellName)
|
||||
{
|
||||
setDescription(QString(plotNameFormatString()).arg(m_wellPathNameOrSimWellName));
|
||||
}
|
||||
|
||||
if (changedField == &m_wellPathNameOrSimWellName)
|
||||
{
|
||||
m_branchIndex = 0;
|
||||
|
||||
RimWellLogTrack* const plotTrack = m_wellLogPlot->trackByIndex(0);
|
||||
@ -709,7 +705,6 @@ void RimWellRftPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
{
|
||||
updateFormationsOnPlot();
|
||||
syncCurvesFromUiSelection();
|
||||
m_selectedSourcesOrTimeStepsFieldsChanged = true;
|
||||
}
|
||||
else if (changedField == &m_showPlotTitle)
|
||||
{
|
||||
@ -746,12 +741,6 @@ QImage RimWellRftPlot::snapshotWindowContent()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellRftPlot::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
||||
{
|
||||
if (!m_selectedSourcesOrTimeStepsFieldsChanged)
|
||||
{
|
||||
updateEditorsFromCurves();
|
||||
}
|
||||
m_selectedSourcesOrTimeStepsFieldsChanged = false;
|
||||
|
||||
uiOrdering.add(&m_userName);
|
||||
uiOrdering.add(&m_wellPathNameOrSimWellName);
|
||||
|
||||
|
@ -144,6 +144,5 @@ private:
|
||||
|
||||
QPointer<RiuWellRftPlot> m_wellLogPlotWidget;
|
||||
|
||||
bool m_selectedSourcesOrTimeStepsFieldsChanged;
|
||||
bool m_isOnLoad;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user