Fixed Items could not be edited on taglist view (for example raw edit)

This commit is contained in:
Jindra Petřík
2022-11-01 21:41:30 +01:00
parent 9814dce73c
commit 9cb0510d6e
3 changed files with 4 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
- All "mapped" tags have character id in parenthesis in the tag tree
- Raw editor now checks whether field value can be placed inside this kind of tag
- Refreshing parent tags and/or timelines on raw editor save
- Items could not be edited on taglist view (for example raw edit)
### Changed
- Do not show export name (class) in DoInitAction in Tag list view instead of tag name

View File

@@ -28,7 +28,6 @@ import com.jpexs.decompiler.flash.gui.generictageditors.GenericTagEditor;
import com.jpexs.decompiler.flash.gui.generictageditors.NumberEditor;
import com.jpexs.decompiler.flash.gui.generictageditors.StringEditor;
import com.jpexs.decompiler.flash.gui.tagtree.AbstractTagTree;
import com.jpexs.decompiler.flash.gui.tagtree.TagTree;
import com.jpexs.decompiler.flash.tags.Tag;
import com.jpexs.decompiler.flash.tags.base.ASMSource;
import com.jpexs.decompiler.flash.tags.base.CharacterIdTag;

View File

@@ -862,7 +862,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
}
private void editMetadataButtonActionPerformed(ActionEvent evt) {
TreeItem item = mainPanel.tagTree.getCurrentTreeItem();
TreeItem item = mainPanel.getCurrentTree().getCurrentTreeItem();
if (item == null) {
return;
}
@@ -891,7 +891,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
}
private void editGenericTagButtonActionPerformed(ActionEvent evt) {
TreeItem item = mainPanel.tagTree.getCurrentTreeItem();
TreeItem item = mainPanel.getCurrentTree().getCurrentTreeItem();
if (item == null) {
return;
}
@@ -970,7 +970,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
}
private void freeTransformPlaceTagButtonActionPerformed(ActionEvent evt) {
TreeItem item = mainPanel.tagTree.getCurrentTreeItem();
TreeItem item = mainPanel.getCurrentTree().getCurrentTreeItem();
if (item == null) {
return;
}