mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 17:39:58 +00:00
Fixup Mark Exhaustion
.. allow delete .. refresh properly .. double click on axis to edit list of exhaustions in the ride
This commit is contained in:
@@ -1641,6 +1641,22 @@ void RideFile::removeReference(int index)
|
||||
referencePoints_.remove(index);
|
||||
}
|
||||
|
||||
void RideFile::removeExhaustion(int index)
|
||||
{
|
||||
if (index < 0) return;
|
||||
|
||||
// wipe the index'th exhaustion point in the ride
|
||||
int i=-1;
|
||||
for(int k=0; k<referencePoints_.count(); k++) {
|
||||
if (referencePoints_[k]->secs > 0) {
|
||||
if (++i == index) {
|
||||
referencePoints_.removeAt(k);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
RideFile::parseRideFileName(const QString &name, QDateTime *dt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user