mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
MainWindow Refactor Part 3 of 5
Slowly migrating code and data from the MainWindow class to Athlete and Context classes. This update moves the ride and interval lists and data structures from MainWindow to Athlete.
This commit is contained in:
@@ -807,7 +807,7 @@ SplitConfirm::validatePage()
|
||||
// first do we need to remove the current ride?
|
||||
if (wizard->keepOriginal == false) {
|
||||
|
||||
wizard->context->mainWindow->removeCurrentRide();
|
||||
wizard->context->athlete->removeCurrentRide();
|
||||
QTreeWidgetItem *current = wizard->files->invisibleRootItem()->child(0);
|
||||
current->setText(5, tr("Removed"));
|
||||
}
|
||||
@@ -825,7 +825,7 @@ SplitConfirm::validatePage()
|
||||
|
||||
current->setText(5, tr("Saved"));
|
||||
|
||||
wizard->context->mainWindow->addRide(QFileInfo(out).fileName(), true);
|
||||
wizard->context->athlete->addRide(QFileInfo(out).fileName(), true);
|
||||
}
|
||||
|
||||
// now make this page the last (so we can see what was done)
|
||||
|
||||
Reference in New Issue
Block a user