Merge pull request #786 from ispyisail/fix/remove-dead-exclude-bom-clause

Remove dead exclude_from_bom clause from ElementQueryWidget
This commit is contained in:
Laurent Trinques
2026-08-25 06:52:29 +02:00
committed by GitHub
+4 -4
View File
@@ -378,10 +378,10 @@ QString ElementQueryWidget::queryStr() const
where.clear();
}
QString exclude_condition = "(exclude_from_bom IS NULL OR exclude_from_bom != '1')";
filter_ += " AND " + exclude_condition;
// -------------------------------------------------------------
// exclude_from_bom is already filtered by element_nomenclature_view
// (see createElementNomenclatureView() in projectdatabase.cpp); this
// widget's query reads FROM that view, so a flagged element never
// reaches this point in the first place.
if (where.isEmpty() && !filter_.isEmpty()) {
filter_.remove(0, 4); //Remove the first " AND" of filter.