fixed bug 326: clicking onto time slider puts it in replay mode in any case

This commit is contained in:
Axel Uhl committed 2012-02-23 00:21:57 +01:00
1 parent 18afc3e6f7
commit d8378c5169
1 file changed
+4
@@ -118,6 +118,10 @@ public class TimePanel<T extends TimePanelSettings> extends FormPanel implements
@Override
public void onValueChange(ValueChangeEvent<Double> newValue) {
if(sliderBar.getCurrentValue() != null) {
if (TimePanel.this.timer.getPlayMode() == PlayModes.Live) {
// put timer into replay mode when user explicitly adjusts time; avoids having to press pause first
TimePanel.this.timer.setPlayMode(PlayModes.Replay);
}
TimePanel.this.timer.setTime(sliderBar.getCurrentValue().longValue());
}
}