Skip to content

Commit

Permalink
Error setting field freeze (#1863)
Browse files Browse the repository at this point in the history
* Error setting field freeze

* Update EntryEditor.java

* Background color

* Typo

* Another Typo

* color before if

* CHANGELOG edited
  • Loading branch information
grimes2 authored and oscargus committed Aug 27, 2016
1 parent 4e0ff50 commit cbef5a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#

### Fixed
- Fixed NullPointerException when opening search result window for an untitled database
- Fixed #1757: Crash after saving illegal argument in entry editor

### Removed
- The non-supported feature of being able to define file directories for any extension is removed. Still, it should work for older databases using the legacy `ps` and `pdf` fields, although we strongly encourage using the `file` field.
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/net/sf/jabref/gui/entryeditor/EntryEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1208,10 +1208,12 @@ public void actionPerformed(ActionEvent event) {
updateSource();
panel.markBaseChanged();
} catch (IllegalArgumentException ex) {
JOptionPane.showMessageDialog(frame, Localization.lang("Error") + ": " + ex.getMessage(),
Localization.lang("Error setting field"), JOptionPane.ERROR_MESSAGE);
fieldEditor.setInvalidBackgroundColor();
LOGGER.debug("Error setting field", ex);
if (!SwingUtilities.isEventDispatchThread()) {
JOptionPane.showMessageDialog(frame, Localization.lang("Error") + ": " + ex.getMessage(),
Localization.lang("Error setting field"), JOptionPane.ERROR_MESSAGE);
LOGGER.debug("Error setting field", ex);
}
}
} else {
// set == false
Expand Down

0 comments on commit cbef5a6

Please sign in to comment.