vcs: fix "Go To Change" action in diff from apply patch dialog

follow-up: 4583b38f07
This commit is contained in:
Aleksey Pivovarov
2017-10-12 17:32:26 +03:00
parent a8c7929e59
commit a6e33405f4
@@ -1226,7 +1226,7 @@ public class ApplyPatchDifferentiatedDialog extends DialogWrapper {
Change change = myChanges.get(i);
FilePath filePath = ChangesUtil.getFilePath(change);
FileStatus fileStatus = change.getFileStatus();
nodesData.add(new TreeModelBuilder.GenericNodeData(filePath, fileStatus, myIndex));
nodesData.add(new TreeModelBuilder.GenericNodeData(filePath, fileStatus, i));
}
TreeModelBuilder builder = new TreeModelBuilder(project, showFlatten);