Fir set RPE from Overview Regression

.. updating the RPE value via the RPE widget on the overview was lost in
   the last commit, this fix reinstates it.
This commit is contained in:
Mark Liversedge
2020-05-31 18:55:36 +01:00
parent 8a1842a9ba
commit f8f43eed4c
2 changed files with 4 additions and 2 deletions

View File

@@ -1334,7 +1334,7 @@ void
RPErating::applyEdit()
{
// update the item - if we have one
RideItem *item = parent->parent->property("ride").value<RideItem*>();
RideItem *item = parent->parent->current;
// did it change?
if (item && item->ride() && item->getText("RPE","") != value) {

View File

@@ -135,6 +135,9 @@ class ChartSpace : public QWidget
QGraphicsView *view;
QFont titlefont, bigfont, midfont, smallfont;
// the item we are currently showing
RideItem *current;
// to get paint device
QGraphicsView *device() { return view; }
const QList<ChartSpaceItem*> allItems() { return items; }
@@ -231,7 +234,6 @@ class ChartSpace : public QWidget
bool stale;
bool configured;
RideItem *current;
};
#endif // _GC_ChartSpace_h