From 74de6b8c8b3876304ab7254d37d68a89f1d4b03a Mon Sep 17 00:00:00 2001 From: Samiya Caur <36728314+samiyac@users.noreply.github.com> Date: Wed, 13 Mar 2019 00:52:12 +0530 Subject: [PATCH] Changes the title of Group Dialog to Add subgroup when adding a new subgroup (#4757) --- CHANGELOG.md | 1 + src/main/java/org/jabref/gui/groups/GroupDialog.java | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4efb45787a6..93ba052512e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# - We added additional modifiers (capitalize, titlecase and sentencecase) to the Bibtex key generator. [#1506](https://github.com/JabRef/jabref/issues/1506) - We grouped the toolbar icons and changed the Open Library and Copy icons. [#4584](https://github.com/JabRef/jabref/issues/4584) - We added a browse button next to the path text field for aux-based groups. [#4586](https://github.com/JabRef/jabref/issues/4586) +- We changed the title of Group Dialog to "Add subgroup" from "Edit group" when we select Add subgroup option. ### Fixed diff --git a/src/main/java/org/jabref/gui/groups/GroupDialog.java b/src/main/java/org/jabref/gui/groups/GroupDialog.java index 9859213c926..94c9f519fa7 100644 --- a/src/main/java/org/jabref/gui/groups/GroupDialog.java +++ b/src/main/java/org/jabref/gui/groups/GroupDialog.java @@ -128,7 +128,12 @@ class GroupDialog extends BaseDialog { * created. */ public GroupDialog(DialogService dialogService, BasePanel basePanel, JabRefPreferences prefs, AbstractGroup editedGroup) { - this.setTitle(Localization.lang("Edit group")); + + if (editedGroup == null) { + this.setTitle(Localization.lang("Add subgroup")); + } else { + this.setTitle(Localization.lang("Edit group")); + } explicitRadioButton.setSelected(true);