mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Avoid Dump in Merge Activity Wizard
... Only allow "Next" if 2nd file is loaded (otherwise a dump occurs) (cherry picked from commit 88b8479cbb90c8306ca32c0d193199ed895db95c)
This commit is contained in:
@@ -159,6 +159,8 @@ MergeUpload::importFile(QList<QString> files)
|
||||
ride2Label->setText(tr("Second ride")+" "+ride->startTime().toString(tr("MMM d, yyyy - hh:mm:ss")));
|
||||
|
||||
wizard->ride2 = ride;
|
||||
ride2Loaded = TRUE;
|
||||
emit completeChanged();
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -170,6 +172,13 @@ MergeUpload::importFile(QList<QString> files)
|
||||
}
|
||||
|
||||
|
||||
bool MergeUpload::isComplete() const
|
||||
{
|
||||
return ride2Loaded;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Synchronise start of files
|
||||
MergeSync::MergeSync(MergeActivityWizard *parent) : QWizardPage(parent), wizard(parent)
|
||||
{
|
||||
|
||||
@@ -146,6 +146,8 @@ class MergeUpload : public QWizardPage
|
||||
|
||||
QPushButton *uploadButton;
|
||||
QLabel *labelSuccess, *ride2Label;
|
||||
bool isComplete() const;
|
||||
bool ride2Loaded = FALSE;
|
||||
|
||||
private slots:
|
||||
void importFile();
|
||||
|
||||
Reference in New Issue
Block a user