1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-15 13:55:03 -05:00

Fix drop issues

This commit is contained in:
Reinhard Pointner 2016-04-23 02:02:01 +08:00
parent 2c117561e3
commit 1093431c24

View File

@ -204,7 +204,7 @@ public class ListPanel extends JComponent {
}
public void createItemSequence(List<?> objects) {
List<ListItem> items = IntStream.range(1, objects.size()).mapToObj(i -> createItem(objects.get(i), i, 0, objects.size(), objects)).collect(toList());
List<ListItem> items = IntStream.range(0, objects.size()).mapToObj(i -> createItem(objects.get(i), i + 1, 1, objects.size(), objects)).collect(toList());
list.getListComponent().clearSelection();
list.getModel().clear();