Commit 9e65baa7 authored by Riegel's avatar Riegel
Browse files

Fix Opening treenode text color bug

parent 43f226db
...@@ -16,13 +16,21 @@ public class AllOpeningsNode extends Renderable { ...@@ -16,13 +16,21 @@ public class AllOpeningsNode extends Renderable {
@Override @Override
public void refreshTextColor() { public void refreshTextColor() {
for (Opening bp : openings) { boolean wasChecked = false;
if (bp.containsAnyError()) { for (Opening op : openings) {
setStatus(CheckStatus.ERROR); if (op.isValidated()) {
return; wasChecked = true;
if (op.containsAnyError()) {
setStatus(CheckStatus.ERROR);
return;
}
} }
} }
setStatus(CheckStatus.OK); if (wasChecked) {
setStatus(CheckStatus.OK);
} else {
setStatus(CheckStatus.NOT_CHECKED);
}
} }
@Override @Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment