don't force Timer.pause() when maneuver table entry is clicked

Change-Id: Id148d6f53e897f25ae3e4a602a98ff47d51a5b50
This commit is contained in:
Axel Uhl committed 2018-04-19 23:48:31 +02:00
1 parent a85fbf844b
commit a357d0238e
1 file changed
+6 -6
@@ -133,12 +133,12 @@ public class ManeuverTablePanel extends AbstractCompositeComponent<ManeuverTable
@Override
public void onSelectionChange(SelectionChangeEvent event) {
final ManeuverTableData selected = selectionModel.getSelectedObject();
if (selected != null
&& (timer.getPlayMode() == PlayModes.Replay || hasCanReplayDuringLiveRacesPermission)) {
timer.pause();
timer.setTime(selected.getTimePointBefore().getTime());
} else if (selected != null) {
selectionModel.clear();
if (selected != null) {
if (timer.getPlayMode() == PlayModes.Replay || hasCanReplayDuringLiveRacesPermission) {
timer.setTime(selected.getTimePointBefore().getTime());
} else {
selectionModel.clear();
}
}
}
});