From 70f497d3bd39307ad00a632c0c574632a4121a01 Mon Sep 17 00:00:00 2001 From: hemirt <1310440+hemirt@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:03:14 +0200 Subject: [PATCH] Update src/widgets/helper/NotebookTab.cpp Co-authored-by: nerix --- src/widgets/helper/NotebookTab.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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); }); };