mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Move allRides initialisation to Athlete
.. was left behind in MainWindow by accident.
This commit is contained in:
@@ -591,16 +591,6 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
analSidebar->addWidget(intervalItem);
|
||||
analSidebar->prepare(context->athlete->cyclist, "analysis");
|
||||
|
||||
QTreeWidgetItem *last = NULL;
|
||||
QStringListIterator i(RideFileFactory::instance().listRideFiles(context->athlete->home));
|
||||
while (i.hasNext()) {
|
||||
QString name = i.next();
|
||||
QDateTime dt;
|
||||
if (RideFile::parseRideFileName(name, &dt)) {
|
||||
last = new RideItem(RIDE_TYPE, context->athlete->home.path(), name, dt, context->athlete->zones(), context->athlete->hrZones(), context);
|
||||
context->athlete->allRides->addChild(last);
|
||||
}
|
||||
}
|
||||
|
||||
splitter = new QSplitter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user