Commit fee3222f authored by Justus Winter's avatar Justus Winter

Fix selecting the color from a set of filters

Invert the condition.  Previously, filters were ignored that presented
a valid color.  Now those with a valid color are selected.  This was
likely a copy&paste error from 'get_string'.
Signed-off-by: default avatarJustus Winter <>
parent 14937878
......@@ -342,7 +342,7 @@ static QColor get_color(const std::vector<std::shared_ptr<KeyFilter>> &filters,
const auto it = std::find_if(filters.cbegin(), filters.cend(),
[&fun, &key](const std::shared_ptr<KeyFilter> &filter) {
return filter->matches(key, KeyFilter::Appearance)
&& !(filter.get()->*fun)().isValid();
&& (filter.get()->*fun)().isValid();
if (it == filters.cend()) {
return QColor();
Markdown is supported
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