Fixed delete issue

This commit is contained in:
Kelly Kelly 2021-01-07 17:20:00 -05:00
parent d772805500
commit bc7fd6c850

View File

@ -90,14 +90,15 @@ public class YaraRuleSetOptionPanel extends javax.swing.JPanel {
if(ruleSet != null && !ruleSet.getPath().toFile().exists()) {
ruleSetDetailsPanel.setRuleSet(null);
ruleSetPanel.removeRuleSet(ruleSet);
JOptionPane.showMessageDialog(this,
Bundle.YaraRuleSetOptionPanel_RuleSet_Missing(ruleSet.getName()),
Bundle.YaraRuleSetOptionPanel_RuleSet_Missing_title(),
JOptionPane.ERROR_MESSAGE);
}
} else {
ruleSetDetailsPanel.setRuleSet(ruleSet);
}
}
@Messages({
"YaraRuleSetOptionPanel_new_rule_set_name_msg=Supply a new unique rule set name:",