fixed removing newly created tags (setTimelined)

This commit is contained in:
Jindra Petřík
2014-11-05 22:27:02 +01:00
parent 2fd6b2d4d1
commit 7baee5eeb0

View File

@@ -488,7 +488,9 @@ public class TagTree extends JTree implements ActionListener {
public void actionPerformed(ActionEvent ae) {
try {
SWF swf = folderItem.getSwf();
swf.tags.add((Tag) cl.getDeclaredConstructor(SWF.class).newInstance(new Object[]{swf}));
Tag t = (Tag) cl.getDeclaredConstructor(SWF.class).newInstance(new Object[]{swf});
t.setTimelined(swf);
swf.tags.add(t);
swf.updateCharacters();
mainPanel.refreshTree();
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | SecurityException | IllegalArgumentException | InvocationTargetException ex) {