Skip to content

Commit

Permalink
Revert "Fix right clicking a group and choosing "remove selected entr…
Browse files Browse the repository at this point in the history
…ies from this group" leads to error when Bibtex source tab is selected (#8821)"

This reverts commit 7257350.
  • Loading branch information
koppor committed Jun 6, 2022
1 parent 6fa37b1 commit 6fd3be5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/jabref/gui/entryeditor/SourceTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,7 @@ private void storeSource(BibEntry outOfFocusEntry, String text) {
new FieldWriter(fieldWriterPreferences).write(fieldName, newValue);

compound.addEdit(new UndoableFieldChange(outOfFocusEntry, fieldName, oldValue, newValue));
if (outOfFocusEntry.getField(fieldName).isPresent()) {
outOfFocusEntry.setField(fieldName, newValue);
}
outOfFocusEntry.setField(fieldName, newValue);
}
}

Expand Down

0 comments on commit 6fd3be5

Please sign in to comment.