mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fixup MainWindow refactor Part 2
.. fix workoutwizard context hack .. fix modelplot (3d) code that was missed
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "WorkoutWizard.h"
|
||||
#include "MainWindow.h"
|
||||
#include "Context.h"
|
||||
#include "Athlete.h"
|
||||
|
||||
@@ -740,9 +741,9 @@ void ImportPage::SaveWorkout()
|
||||
stream << "[END COURSE DATA]" << endl;
|
||||
}
|
||||
|
||||
WorkoutWizard::WorkoutWizard(QWidget *parent) :QWizard(parent)
|
||||
WorkoutWizard::WorkoutWizard(Context *context) :QWizard(context->mainWindow)
|
||||
{
|
||||
hackContext = (Context *)parent;
|
||||
hackContext = context;
|
||||
setPage(WW_WorkoutTypePage, new WorkoutTypePage());
|
||||
setPage(WW_AbsWattagePage, new AbsWattagePage());
|
||||
setPage(WW_RelWattagePage, new RelWattagePage());
|
||||
|
||||
Reference in New Issue
Block a user