mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user