Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f37df3f

Browse files
committedJan 29, 2020
quick fix for pending issue: editing an ExternalFileType works now (still room for improvement); visual bug concerning "lazy" update of table could be a Linux issue, since other tables are affected as well; so basically - except the "lazy" update thing -- everyting works concerning external file types
1 parent 654fb07 commit f37df3f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎src/main/java/org/jabref/gui/externalfiletype/CustomizeExternalFileTypesDialog.java

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public CustomizeExternalFileTypesDialog() {
4040
this.setResultConverter(button -> {
4141
if (button == ButtonType.OK) {
4242
viewModel.storeSettings();
43+
fileTypesTable.refresh();
4344
}
4445
return null;
4546
});

‎src/main/java/org/jabref/gui/externalfiletype/CustomizeExternalFileTypesViewModel.java

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ private void showEditDialog(ExternalFileType type, String dialogTitle) {
4949
typeForEdit = (CustomExternalFileType) type;
5050
} else {
5151
typeForEdit = new CustomExternalFileType(type);
52+
fileTypes.add(fileTypes.indexOf(type), typeForEdit);
53+
fileTypes.remove(type);
5254
}
5355

5456
EditExternalFileTypeEntryDialog dlg = new EditExternalFileTypeEntryDialog(typeForEdit, dialogTitle);

0 commit comments

Comments
 (0)
Please sign in to comment.