diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index ef2bcb1d0..fb89a0caa 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -55,6 +55,7 @@ #include "AboutDialog.h" #include "ChooseCyclistDialog.h" #include "ConfigDialog.h" +#include "AthleteConfigDialog.h" #include "DownloadRideDialog.h" #include "ManualRideDialog.h" #include "RideImportWizard.h" @@ -482,6 +483,7 @@ MainWindow::MainWindow(const QDir &home) fileMenu->addSeparator(); fileMenu->addAction(tr("Save all modified activities"), this, SLOT(saveAllUnsavedRides())); + fileMenu->addAction(tr("Settings"), this, SLOT(athleteSettings())); fileMenu->addSeparator(); fileMenu->addAction(tr("Close Window"), this, SLOT(closeWindow())); //fileMenu->addAction(tr("&Close Tab"), this, SLOT(closeTab())); use athlete view @@ -1827,6 +1829,13 @@ MainWindow::saveRide() } } +void +MainWindow::athleteSettings() +{ + AthleteConfigDialog *dialog = new AthleteConfigDialog(currentAthleteTab->context->athlete->home->root(), currentAthleteTab->context); + dialog->exec(); +} + void MainWindow::saveAllUnsavedRides() { diff --git a/src/Gui/MainWindow.h b/src/Gui/MainWindow.h index 68e275228..e6abad337 100644 --- a/src/Gui/MainWindow.h +++ b/src/Gui/MainWindow.h @@ -182,6 +182,9 @@ class MainWindow : public QMainWindow void setDeleteAthleteMenu(); void deleteAthlete(QString name); + // Athlete Settings + void athleteSettings(); + // Search / Filter void setFilter(QStringList); void clearFilter();