Commit 0aa5b057ff2c8b0f63f30b9d31551a7ae32a5fab
1 parent
033ae34d
Fix conditional in splitFTE
Fix an issue where FTE templates were added to the source list, instead of discarded entirely, as intended.
Showing
1 changed file
with
4 additions
and
3 deletions
openbr/plugins/openbr_internal.h
| @@ -484,9 +484,10 @@ inline void splitFTEs(TemplateList &src, TemplateList &ftes) | @@ -484,9 +484,10 @@ inline void splitFTEs(TemplateList &src, TemplateList &ftes) | ||
| 484 | src.clear(); | 484 | src.clear(); |
| 485 | 485 | ||
| 486 | foreach (const Template &t, active) { | 486 | foreach (const Template &t, active) { |
| 487 | - if (t.file.fte && !Globals->enrollAll) | ||
| 488 | - ftes.append(t); | ||
| 489 | - else | 487 | + if (t.file.fte) { |
| 488 | + if (!Globals->enrollAll) | ||
| 489 | + ftes.append(t); | ||
| 490 | + } else | ||
| 490 | src.append(t); | 491 | src.append(t); |
| 491 | } | 492 | } |
| 492 | } | 493 | } |