From f72f92b02f4e547107be667bceaca7ae4ce29e9b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Oct 2014 23:14:28 +0200 Subject: typo broke filter box Meant "x && t == x->type" but it's not necessary after all. --- facetracknoir/facetracknoir.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp index 44fa11f0..005e85f5 100644 --- a/facetracknoir/facetracknoir.cpp +++ b/facetracknoir/facetracknoir.cpp @@ -91,11 +91,14 @@ FaceTrackNoIR::~FaceTrackNoIR() save(); } -void FaceTrackNoIR::fill_combobox(dylib::Type t, QList> list, QList>& out_list, QComboBox* cbx) +void FaceTrackNoIR::fill_combobox(dylib::Type t, + QList> list, + QList>& out_list, + QComboBox* cbx) { for (auto x : list) { - if (t && t == x->type) + if (t == x->type) { cbx->addItem(x->icon, x->name); out_list.append(x); -- cgit v1.2.3