#1912 Curve Creator : Avoid selection in main project tree when clicking on curve

This commit is contained in:
Magne Sjaastad
2017-09-27 08:12:01 +02:00
parent 184e00c5aa
commit 802a9154e4
4 changed files with 44 additions and 7 deletions

View File

@@ -1320,7 +1320,13 @@ caf::PdmObject* RimSummaryPlot::findRimCurveFromQwtCurve(const QwtPlotCurve* qwt
if (m_summaryCurveCollection)
{
RimSummaryCurve* foundCurve = m_summaryCurveCollection->findRimCurveFromQwtCurve(qwtCurve);
if (foundCurve) return foundCurve;
if (foundCurve)
{
m_summaryCurveCollection->setCurrentSummaryCurve(foundCurve);
return foundCurve;
}
}
return NULL;