Skip to content

Commit a6c91f9

Browse files
committed
Fixed issue with right-click not switching node selection in jtree
1 parent 41cc178 commit a6c91f9

File tree

1 file changed

+2
-1
lines changed
  • lib/JavaTreeWrapper_20151110/JavaTreeWrapper/+uiextras/+jTree

1 file changed

+2
-1
lines changed

lib/JavaTreeWrapper_20151110/JavaTreeWrapper/+uiextras/+jTree/Tree.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ function onMouseClick(tObj,e)
613613

614614
% If the node was not previously selected, do it
615615
if ~any(tObj.SelectedNodes == nObj)
616-
tObj.SelectedNodes = nObj;
616+
%tObj.SelectedNodes = nObj;
617+
tObj.jTree.setSelectionPath(nObj.jNode.getTreePath());
617618
end
618619

619620
% Get the custom context menus for selected nodes

0 commit comments

Comments
 (0)