Skip to content

Commit

Permalink
Fuck you qt
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and elpaso committed Oct 22, 2020
1 parent 7186c80 commit 8942ed5
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/gui/layertree/qgslayertreeview.cpp
Expand Up @@ -671,18 +671,11 @@ bool QgsLayerTreeProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex
bool QgsLayerTreeProxyModel::nodeShown( QgsLayerTreeNode *node ) const
{
if ( !node )
return false;
return true;

if ( node->nodeType() == QgsLayerTreeNode::NodeGroup )
{
const auto constChildren = node->children();
for ( QgsLayerTreeNode *child : constChildren )
{
if ( nodeShown( child ) )
{
return true;
}
}
return false;
return true;
}
else
{
Expand Down

0 comments on commit 8942ed5

Please sign in to comment.