gui: fix tree class switch

This commit is contained in:
Skylot
2013-07-24 17:43:32 +04:00
parent ca2c935f65
commit 3a62d04376
@@ -1,6 +1,7 @@
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());
}
}
}