mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fixed removal of planned workouts
Rename failed due to wrong directory
This commit is contained in:
@@ -308,7 +308,7 @@ RideCache::removeCurrentRide()
|
||||
// delete the file by renaming it
|
||||
QString strOldFileName = context->ride->fileName;
|
||||
|
||||
QFile file(directory.canonicalPath() + "/" + strOldFileName);
|
||||
QFile file((context->ride->planned ? plannedDirectory : directory).canonicalPath() + "/" + strOldFileName);
|
||||
// purposefully don't remove the old ext so the user wouldn't have to figure out what the old file type was
|
||||
QString strNewName = strOldFileName + ".bak";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user