diff --git a/desktop-widgets/filterconstraintwidget.cpp b/desktop-widgets/filterconstraintwidget.cpp index 6e5c2d032..508c65b77 100644 --- a/desktop-widgets/filterconstraintwidget.cpp +++ b/desktop-widgets/filterconstraintwidget.cpp @@ -328,7 +328,7 @@ void FilterConstraintWidget::update() } // Update the unit strings in case the locale was changed - if (unitFrom || unitTo) { + if (unitFrom && unitTo) { QString unitString = idx.data(FilterConstraintModel::UNIT_ROLE).value(); unitFrom->setText(unitString); unitTo->setText(unitString);