diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index f343ccdb2..2b33e82c4 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -411,16 +411,12 @@ void NotebookTab::setHighlightState(HighlightState newHighlightStyle, const auto &splits = splitContainer->getSplits(); for (const auto &split : splits) { - auto &&filterIdsSource = channelViewSource.getFilterIds(); - auto uniqueFilterIdsSource = - QSet(filterIdsSource.cbegin(), filterIdsSource.cend()); - auto &&filterIdsSplit = split->getChannelView().getFilterIds(); - auto uniqueFilterIdsSplit = - QSet(filterIdsSplit.cbegin(), filterIdsSplit.cend()); + auto filterIdsSource = channelViewSource.getFilterIds(); + auto filterIdsSplit = split->getChannelView().getFilterIds(); - auto isSubset = [](QSet sub, QSet super) { - return std::ranges::none_of(sub, [&super](const auto &subItem) { - return !super.contains(subItem); + auto isSubset = [](const QList &sub, const QList &super) { + return std::ranges::all_of(sub, [&super](const auto &subItem) { + return super.contains(subItem); }); };