mirror of https://github.com/zlatinb/muwire
fix for identical file names in results
parent
ff2e4be347
commit
0758108d19
|
@ -71,8 +71,9 @@ class ResultTreeModel extends DefaultTreeModel {
|
|||
Object [] elementData = children.elementData
|
||||
int idx = Arrays.binarySearch(elementData, 0, getChildCount(), newChild)
|
||||
if (idx >= 0)
|
||||
throw new IllegalStateException("duplicate result inserted?")
|
||||
idx = - idx - 1
|
||||
idx++
|
||||
else
|
||||
idx = - idx - 1
|
||||
insert(newChild, idx)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue