# HG changeset patch # User Andre Heinecke # Date 1410186290 -7200 # Node ID 8636d2b35cbccc98fb8c7daee09af2a55ca64bf2 # Parent dded480e17c9067a3b0d9ab361af59a2f51dbb91 (issue1448) In a list of one element. Select the only element. diff -r dded480e17c9 -r 8636d2b35cbc gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java Mon Sep 08 16:24:16 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java Mon Sep 08 16:24:50 2014 +0200 @@ -191,6 +191,10 @@ SedimentLoadInfoRecord rec = new SedimentLoadInfoRecord(sl); sedLoadTable.addData(rec); } + if (sedLoad.length == 1) { + /* Preselect lists with only one load. */ + sedLoadTable.selectRecords(new int[] {0}); + } } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :