mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Merge pull request #1239 from Joern-R/fix
Fix - .JSON not updated with man.l changes directly after Import or Download
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "Settings.h"
|
||||
#include "JsonRideFile.h"
|
||||
#include "HelpWhatsThis.h"
|
||||
#include "RideItem.h"
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <QtGui>
|
||||
@@ -469,6 +470,8 @@ DownloadRideDialog::downloadClicked()
|
||||
// now rename
|
||||
QFile targetFileTmpActivities(targetFileTmpActivitiesName);
|
||||
targetFileTmpActivities.rename(targetFileActivitiesName);
|
||||
// and correct the path locally stored in Ride Item
|
||||
context->ride->setFileName(context->athlete->home->activities().canonicalPath(), targetFileName);
|
||||
}
|
||||
|
||||
if( ! failures )
|
||||
|
||||
@@ -974,6 +974,8 @@ RideImportWizard::abortClicked()
|
||||
// rideCache is successfully updated, let's move the file to the real /activities
|
||||
if (moveFile(tmpActivitiesFulltarget, finalActivitiesFulltarget)) {
|
||||
tableWidget->item(i,5)->setText(tr("File Saved"));
|
||||
// and correct the path locally stored in Ride Item
|
||||
context->ride->setFileName(homeActivities.canonicalPath(), activitiesTarget);
|
||||
} else {
|
||||
tableWidget->item(i,5)->setText(tr("Error - Moving %1 to activities folder").arg(activitiesTarget));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user