Fixed crash when reloading entries

This commit is contained in:
unknown 2015-01-19 18:09:19 -06:00
parent e87428d12f
commit 40a458388e
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ public class AddEntry implements IUndoableAction {
@Override
public void undo() {
Entry.category.entries.remove(Entry);
BotaniaAPI.getAllEntries().remove(Entry);
}
@Override

View file

@ -16,6 +16,7 @@ public class RemoveEntry implements IUndoableAction {
@Override
public void apply() {
Entry.category.entries.remove(Entry);
BotaniaAPI.getAllEntries().remove(Entry);
}
@Override