Always show start date and time in finished races list

This commit is contained in:
Benjamin Barth committed 2015-09-03 14:19:19 +02:00
1 parent 6a72e564fc
commit ef1841faf4
1 file changed
+5 -1
@@ -283,7 +283,11 @@ public class RegattaRacesTabView extends Composite implements RegattaTabView<Reg
boolean hasFleets = RaceListDataUtil.hasFleets(data);
this.fleetCornerColumn.setShowDetails(hasFleets);
this.fleetNameColumn.setShowDetails(hasFleets);
this.startTimeColumn.setShowTimeOnly(!RaceListDataUtil.hasDifferentStartDates(data));
// Imagine a long running event (several days) where only one race has taken place.
// Actually, you can't find out the date of this race, only its start time.
// Therefore, start date and time is shown, as long as there's now grouping feature.
// TODO: this.startTimeColumn.setShowTimeOnly(!RaceListDataUtil.hasDifferentStartDates(data));
this.startTimeColumn.setShowTimeOnly(false);
this.durationColumn.setShowDetails(RaceListDataUtil.hasDurations(data));
boolean hasWind = RaceListDataUtil.hasWind(data);
this.windSpeedColumn.setShowDetails(hasWind);