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

Fix Opening treenode text color bug

Showing with 13 additions and 5 deletions
+13 -5
...@@ -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) {
if (op.isValidated()) {
wasChecked = true;
if (op.containsAnyError()) {
setStatus(CheckStatus.ERROR); setStatus(CheckStatus.ERROR);
return; return;
} }
} }
}
if (wasChecked) {
setStatus(CheckStatus.OK); 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