mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Add Athlete > Settings to main menu
For completeness and to allow access to Athlete Settings from other views. Fixes #3723
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user