Skip to content

Commit

Permalink
do not call setMatchingPaths(...), used temp variable instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr committed Oct 3, 2023
1 parent 331cce7 commit ebc7854
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libshvvisu/src/timeline/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ QStringList Graph::channelPaths()

void Graph::hideFlatChannels()
{
if (!m_channelFilter.isValid()) {
m_channelFilter.setMatchingPaths(channelPaths());
}
QStringList matching_paths = channelPaths();

QStringList matching_paths = m_channelFilter.matchingPaths();
if (m_channelFilter.isValid()) {
matching_paths = m_channelFilter.matchingPaths();
}

for (qsizetype i = 0; i < m_channels.count(); ++i) {
GraphChannel *ch = m_channels[i];
Expand Down

0 comments on commit ebc7854

Please sign in to comment.