mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Don't allow "_" in user metric name
since it is alread used to replace blanks and breaks some functionality, for example names with "_" don't appear on column chooser.
This commit is contained in:
@@ -281,7 +281,8 @@ EditUserMetricDialog::setErrors(QStringList &list)
|
||||
void
|
||||
EditUserMetricDialog::enableOk()
|
||||
{
|
||||
okButton->setEnabled(!symbol->text().isEmpty() && !name->text().isEmpty());
|
||||
// Check symbol and name are non-empty, and "_" is not used in name.
|
||||
okButton->setEnabled(!symbol->text().isEmpty() && !name->text().isEmpty() && !name->text().contains("_"));
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user