From eda8d5774aa6ba9c8dac0aaea27515de983c4556 Mon Sep 17 00:00:00 2001 From: Houssem Nasri Date: Sat, 3 Sep 2022 20:41:23 +0100 Subject: [PATCH] Don't show the info button when the authors field content is identical --- .../mergeentries/newmergedialog/PersonsNameFieldRowView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jabref/gui/mergeentries/newmergedialog/PersonsNameFieldRowView.java b/src/main/java/org/jabref/gui/mergeentries/newmergedialog/PersonsNameFieldRowView.java index e42bb91743b..8d707f34b0f 100644 --- a/src/main/java/org/jabref/gui/mergeentries/newmergedialog/PersonsNameFieldRowView.java +++ b/src/main/java/org/jabref/gui/mergeentries/newmergedialog/PersonsNameFieldRowView.java @@ -21,7 +21,7 @@ public PersonsNameFieldRowView(Field field, BibEntry leftEntry, BibEntry rightEn leftEntryNames = authorsParser.parse(viewModel.getLeftFieldValue()); rightEntryNames = authorsParser.parse(viewModel.getRightFieldValue()); - if (!leftEntry.equals(rightEntry) && leftEntryNames.equals(rightEntryNames)) { + if (!viewModel.hasEqualLeftAndRightValues() && leftEntryNames.equals(rightEntryNames)) { showPersonsNamesAreTheSameInfo(); shouldShowDiffs.set(false); }