mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
Manual Ride Dialog Fixups
- default size on Linux/Windows - initialise the seconds/totalseconds variables
This commit is contained in:
@@ -50,12 +50,12 @@ ManualRideDialog::deriveFactors()
|
||||
|
||||
// last 'n' days calculation
|
||||
double seconds, distance, bs, dp, tss, kj;
|
||||
distance = tss = kj = bs = dp = 0;
|
||||
seconds = distance = tss = kj = bs = dp = 0;
|
||||
int rides = 0;
|
||||
|
||||
// fall back to 'all time' calculation
|
||||
double totalseconds, totaldistance, totalbs, totaldp, totaltss, totalkj;
|
||||
totaldistance = totaltss = totalkj = totalbs = totaldp = 0;
|
||||
totalseconds = totaldistance = totaltss = totalkj = totalbs = totaldp = 0;
|
||||
|
||||
// just use the metricDB versions, nice 'n fast
|
||||
foreach (SummaryMetrics metric, mainWindow->metricDB->getAllMetricsFor(QDateTime() , QDateTime())) {
|
||||
@@ -121,6 +121,8 @@ ManualRideDialog::ManualRideDialog(MainWindow *mainWindow) : mainWindow(mainWind
|
||||
setWindowTitle(tr("Manual Activity Entry"));
|
||||
#ifdef Q_OS_MAC
|
||||
setFixedSize(610,415);
|
||||
#else
|
||||
setFixedSize(615,360);
|
||||
#endif
|
||||
|
||||
// used by the estimator, lets get them just once.
|
||||
|
||||
Reference in New Issue
Block a user