mirror of https://github.com/zlatinb/muwire
Fix recursive expansion if folder was already expanded
parent
16b6c8e419
commit
ab983dbf57
|
@ -230,7 +230,6 @@ class BrowseController {
|
|||
|
||||
void requestFetch(TreePath treePath, boolean recursive) {
|
||||
List<String> path = model.resultsTreeModel.getPathFromRoot(treePath)
|
||||
if (path != null)
|
||||
model.session.fetch(path, recursive)
|
||||
model.session.fetch(path, recursive)
|
||||
}
|
||||
}
|
|
@ -81,12 +81,6 @@ class ResultTreeModel extends DefaultTreeModel {
|
|||
|
||||
List<String> getPathFromRoot(TreePath treePath) {
|
||||
|
||||
MutableResultNode last = (MutableResultNode)treePath.getLastPathComponent()
|
||||
if (last.getChildCount() != 1)
|
||||
return null
|
||||
if (!(last.getChildAt(0) instanceof PlaceholderNode))
|
||||
return null
|
||||
|
||||
Object [] objects = treePath.getPath()
|
||||
|
||||
List<String> rv = new ArrayList<>()
|
||||
|
|
Loading…
Reference in New Issue