mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
Kickr Constants
This commit is contained in:
@@ -594,10 +594,12 @@ static void
|
||||
addSensorTypes(ANT *ant, QComboBox *p)
|
||||
{
|
||||
for (int i=0; ant->ant_sensor_types[i].suffix != '\0'; i++) {
|
||||
if (*ant->ant_sensor_types[i].iconname != '\0') {
|
||||
p->addItem(QIcon(ant->ant_sensor_types[i].iconname), ant->ant_sensor_types[i].descriptive_name, ant->ant_sensor_types[i].type);
|
||||
} else {
|
||||
p->addItem(ant->ant_sensor_types[i].descriptive_name, ant->ant_sensor_types[i].type);
|
||||
if (ant->ant_sensor_types[i].user) {
|
||||
if (*ant->ant_sensor_types[i].iconname != '\0') {
|
||||
p->addItem(QIcon(ant->ant_sensor_types[i].iconname), ant->ant_sensor_types[i].descriptive_name, ant->ant_sensor_types[i].type);
|
||||
} else {
|
||||
p->addItem(ant->ant_sensor_types[i].descriptive_name, ant->ant_sensor_types[i].type);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user