diff options
| author | 2016-10-18 20:58:58 +0200 | |
|---|---|---|
| committer | 2016-10-18 20:58:58 +0200 | |
| commit | 8b1ba2f2816a7503489f52969f3faa2efd3ad60d (patch) | |
| tree | 972ed3f8ee992b007caa82618b5978d5030dea69 | |
| parent | Fixes execution order for line number ruler (Close #39) (diff) | |
| download | enigma-8b1ba2f2816a7503489f52969f3faa2efd3ad60d.tar.gz enigma-8b1ba2f2816a7503489f52969f3faa2efd3ad60d.tar.xz enigma-8b1ba2f2816a7503489f52969f3faa2efd3ad60d.zip | |
Fix #48
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/GuiController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/GuiController.java b/src/main/java/cuchaz/enigma/gui/GuiController.java index 3188ff02..2d0f7ae2 100644 --- a/src/main/java/cuchaz/enigma/gui/GuiController.java +++ b/src/main/java/cuchaz/enigma/gui/GuiController.java | |||
| @@ -202,7 +202,7 @@ public class GuiController { | |||
| 202 | this.deobfuscator.rename(obfReference.getNameableEntry(), newName); | 202 | this.deobfuscator.rename(obfReference.getNameableEntry(), newName); |
| 203 | this.isDirty = true; | 203 | this.isDirty = true; |
| 204 | 204 | ||
| 205 | if (refreshClassTree && deobfReference.entry instanceof ClassEntry) | 205 | if (refreshClassTree && deobfReference.entry instanceof ClassEntry && !((ClassEntry) deobfReference.entry).isInnerClass()) |
| 206 | this.gui.moveClassTree(deobfReference, newName); | 206 | this.gui.moveClassTree(deobfReference, newName); |
| 207 | refreshCurrentClass(obfReference); | 207 | refreshCurrentClass(obfReference); |
| 208 | 208 | ||
| @@ -221,7 +221,7 @@ public class GuiController { | |||
| 221 | EntryReference<Entry, Entry> obfReference = this.deobfuscator.obfuscateReference(deobfReference); | 221 | EntryReference<Entry, Entry> obfReference = this.deobfuscator.obfuscateReference(deobfReference); |
| 222 | this.deobfuscator.markAsDeobfuscated(obfReference.getNameableEntry()); | 222 | this.deobfuscator.markAsDeobfuscated(obfReference.getNameableEntry()); |
| 223 | this.isDirty = true; | 223 | this.isDirty = true; |
| 224 | if (deobfReference.entry instanceof ClassEntry) | 224 | if (deobfReference.entry instanceof ClassEntry && !((ClassEntry) deobfReference.entry).isInnerClass()) |
| 225 | this.gui.moveClassTree(deobfReference, obfReference.entry.getName(), true, false); | 225 | this.gui.moveClassTree(deobfReference, obfReference.entry.getName(), true, false); |
| 226 | refreshCurrentClass(obfReference); | 226 | refreshCurrentClass(obfReference); |
| 227 | } | 227 | } |