Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Group color not imported after closing the app #7096

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static GroupTreeNode importGroups(List<String> orderedData, Character key
/**
* Re-create a group instance from a textual representation.
*
* @param s The result from the group's toString() method.
* @param s The result from the group's toString() method.
* @return New instance of the encoded group.
* @throws ParseException If an error occurred and a group could not be created, e.g. due to a malformed regular expression.
*/
Expand Down Expand Up @@ -278,9 +278,11 @@ private static AbstractGroup searchGroupFromString(String s) {
boolean regExp = Integer.parseInt(tok.nextToken()) == 1;
// version 0 contained 4 additional booleans to specify search
// fields; these are ignored now, all fields are always searched
return new SearchGroup(name,
SearchGroup searchGroup = new SearchGroup(name,
GroupHierarchyType.getByNumberOrDefault(context), expression, caseSensitive, regExp
);
addGroupDetails(tok, searchGroup);
return searchGroup;
}

private static void addGroupDetails(QuotedStringTokenizer tokenizer, AbstractGroup group) {
Expand Down