mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
RideImport MUST notify charts
Essentially reverting the commit 0ba93fe61
This commit is contained in:
@@ -824,7 +824,7 @@ RideImportWizard::abortClicked()
|
||||
tableWidget->item(i,5)->setText(tr("File Overwritten"));
|
||||
} else {
|
||||
tableWidget->item(i,5)->setText(tr("File Saved"));
|
||||
mainWindow->addRide(QFileInfo(fulltarget).fileName(), false);
|
||||
mainWindow->addRide(QFileInfo(fulltarget).fileName(), true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -869,7 +869,7 @@ RideImportWizard::abortClicked()
|
||||
QFile source(filenames[i]);
|
||||
if (source.copy(fulltarget)) {
|
||||
tableWidget->item(i,5)->setText(tr("File Saved"));
|
||||
mainWindow->addRide(QFileInfo(fulltarget).fileName(), false); // add to tree view
|
||||
mainWindow->addRide(QFileInfo(fulltarget).fileName(), true); // add to tree view
|
||||
// free immediately otherwise all imported rides are cached
|
||||
// and with large imports this can lead to memory exhaustion
|
||||
// BUT! Some charts/windows will hava snaffled away the ridefile
|
||||
|
||||
Reference in New Issue
Block a user