Commit 3a62d043 authored by Skylot's avatar Skylot

gui: fix tree class switch

parent ca2c935f
package jadx.gui;
import jadx.cli.JadxArgs;
import jadx.gui.treemodel.JClass;
import jadx.gui.treemodel.JNode;
import jadx.gui.treemodel.JRoot;
......@@ -93,6 +94,9 @@ public class MainWindow extends JFrame {
if (node.getJParent() != null) {
textArea.setText(node.getJParent().getCode());
scrollToLine(node.getLine());
} else if (node.getClass() == JClass.class){
textArea.setText(((JClass)node).getCode());
scrollToLine(node.getLine());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment