mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fix QAction for Download Chart...
.. a snafu using the same action twice for add chart and then for download chart in chartbar/mainwindow
This commit is contained in:
@@ -124,8 +124,8 @@ ChartBar::ChartBar(Context *context) : QWidget(context->mainWindow), context(con
|
||||
chartMenu = barMenu->addMenu(tr("Add Chart"));
|
||||
|
||||
#ifdef GC_HAS_CLOUD_DB
|
||||
barMenu->addAction(tr("Download Chart..."));
|
||||
connect(barMenu, SIGNAL(triggered(QAction*)), context->mainWindow, SLOT(addChartFromCloudDB(QAction*)));
|
||||
QAction *cloudAction = barMenu->addAction(tr("Download Chart..."));
|
||||
connect(cloudAction, SIGNAL(triggered(bool)), context->mainWindow, SLOT(addChartFromCloudDB()));
|
||||
#endif
|
||||
// menu
|
||||
connect(menuButton, SIGNAL(clicked()), this, SLOT(menuPopup()));
|
||||
|
||||
@@ -913,7 +913,7 @@ MainWindow::addChart(QAction*action)
|
||||
|
||||
#ifdef GC_HAS_CLOUD_DB
|
||||
void
|
||||
MainWindow::addChartFromCloudDB(QAction*)
|
||||
MainWindow::addChartFromCloudDB()
|
||||
{
|
||||
if (!(appsettings->cvalue(currentTab->context->athlete->cyclist, GC_CLOUDDB_TC_ACCEPTANCE, false).toBool())) {
|
||||
CloudDBAcceptConditionsDialog acceptDialog(currentTab->context->athlete->cyclist);
|
||||
|
||||
@@ -233,7 +233,7 @@ class MainWindow : public QMainWindow
|
||||
void cloudDBuserEditChart();
|
||||
void cloudDBcuratorEditChart();
|
||||
void cloudDBshowStatus();
|
||||
void addChartFromCloudDB(QAction *);
|
||||
void addChartFromCloudDB();
|
||||
#endif
|
||||
// save and restore state to context
|
||||
void saveGCState(Context *);
|
||||
|
||||
Reference in New Issue
Block a user