tag editor: limit values according to basetype

This commit is contained in:
Honfika
2014-02-08 20:58:08 +01:00
parent a57344e99f
commit 2e3893313d
37 changed files with 275 additions and 42 deletions

View File

@@ -2141,7 +2141,10 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
break;
case ACTION_SAVE_GENERIC_TAG: {
genericTagPanel.save();
tagTree.repaint();
refreshTree();
TagTreeModel ttm = (TagTreeModel) tagTree.getModel();
TreePath tp = ttm.getTagPath(genericTagPanel.getTag());
tagTree.setSelectionPath(tp);
genericEditButton.setVisible(true);
genericSaveButton.setVisible(false);
genericCancelButton.setVisible(false);