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,13 +90,14 @@ public class YaraRuleSetOptionPanel extends javax.swing.JPanel {
if(ruleSet != null && !ruleSet.getPath().toFile().exists()) { if(ruleSet != null && !ruleSet.getPath().toFile().exists()) {
ruleSetDetailsPanel.setRuleSet(null); ruleSetDetailsPanel.setRuleSet(null);
ruleSetPanel.removeRuleSet(ruleSet);
JOptionPane.showMessageDialog(this, JOptionPane.showMessageDialog(this,
Bundle.YaraRuleSetOptionPanel_RuleSet_Missing(ruleSet.getName()), Bundle.YaraRuleSetOptionPanel_RuleSet_Missing(ruleSet.getName()),
Bundle.YaraRuleSetOptionPanel_RuleSet_Missing_title(), Bundle.YaraRuleSetOptionPanel_RuleSet_Missing_title(),
JOptionPane.ERROR_MESSAGE); JOptionPane.ERROR_MESSAGE);
} } else {
ruleSetDetailsPanel.setRuleSet(ruleSet);
ruleSetDetailsPanel.setRuleSet(ruleSet); }
} }
@Messages({ @Messages({