From d6f8abaf76e782100163cda162aeae80a8a5789d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 14 Feb 2013 19:46:59 +1300 Subject: Fixed combo box selection (fix #2) --- src/org/traccar/web/client/view/ArchiveView.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/org/traccar/web/client/view') diff --git a/src/org/traccar/web/client/view/ArchiveView.java b/src/org/traccar/web/client/view/ArchiveView.java index 1b4dbce8..67b57503 100644 --- a/src/org/traccar/web/client/view/ArchiveView.java +++ b/src/org/traccar/web/client/view/ArchiveView.java @@ -175,10 +175,7 @@ public class ArchiveView implements SelectionChangedEvent.SelectionChangedHandle public void onAnything() { Device oldDevice = deviceCombo.getValue(); if (oldDevice != null) { - Device newDevice = deviceStore.findModel(oldDevice); - if (newDevice != null) { - deviceCombo.setValue(newDevice); - } + deviceCombo.setValue(deviceStore.findModel(oldDevice)); } } -- cgit v1.2.3