Workout Editor Notify Plots when ErgFile Upated

.. so other plots see changes we made (without saving).

.. the reason we don't insist on saving the erg file is
   because we often increase intensity or repeat sections
   just for a one off run.
This commit is contained in:
Mark Liversedge
2016-01-17 19:31:48 +00:00
parent 421ee3b128
commit dfb398dd81

View File

@@ -105,10 +105,15 @@ WorkoutWidget::start()
// if we have edited the erg we need to update the in-memory points
if (ergFile && stack.count()) {
// replace all the points
ergFile->Points.clear();
foreach(WWPoint *p, points_) {
ergFile->Points.append(ErgFilePoint(p->x * 1000, p->y, p->y));
}
// force any other plots to take the changes
context->notifyErgFileSelected(ergFile);
}
// clear previous data