Skip to content

Commit

Permalink
Changes the title of Group Dialog to Add subgroup when adding a new s…
Browse files Browse the repository at this point in the history
…ubgroup (#4757)
  • Loading branch information
samiyac authored and Siedlerchr committed Mar 12, 2019
1 parent b906e69 commit 74de6b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/org/jabref/gui/groups/GroupDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ class GroupDialog extends BaseDialog<AbstractGroup> {
* 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);

Expand Down

0 comments on commit 74de6b8

Please sign in to comment.