aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-14 19:46:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-14 19:46:59 +1300
commitd6f8abaf76e782100163cda162aeae80a8a5789d (patch)
tree65b24a42c8138976a6f0bd56d20c5b0ead51fc77 /src/org/traccar/web
parent80473fa44324799dff72577b7c352111a424bdf7 (diff)
downloadtrackermap-web-d6f8abaf76e782100163cda162aeae80a8a5789d.tar.gz
trackermap-web-d6f8abaf76e782100163cda162aeae80a8a5789d.tar.bz2
trackermap-web-d6f8abaf76e782100163cda162aeae80a8a5789d.zip
Fixed combo box selection (fix #2)
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r--src/org/traccar/web/client/view/ArchiveView.java5
1 files changed, 1 insertions, 4 deletions
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));
}
}