Hide tooltip in CPPlot

.. when not hovering over a curve, this worked ok for power
   but not for anything else. Because the signal was ignored
   when not showing power in pointHover.
This commit is contained in:
Mark Liversedge
2014-11-20 11:09:08 +00:00
parent f232b0bc21
commit b903e592d9

View File

@@ -1256,7 +1256,8 @@ CPPlot::setRide(RideItem *rideItem)
void
CPPlot::pointHover(QwtPlotCurve *curve, int index)
{
if (showBest && curve == modelCurve) return; // ignore model curve hover
if (criticalSeries == CriticalPowerWindow::watts && showBest && curve == modelCurve)
return; // ignore model curve hover
if (index >= 0) {