Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Follow up b7e31d4: do not include map canvas filter(s)
  • Loading branch information
nirvn committed Aug 30, 2022
1 parent 397b895 commit 01905bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/app/qgsapplayertreeviewmenuprovider.cpp
Expand Up @@ -846,12 +846,6 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
QString filterExp = layer->renderer() ? layer->renderer()->legendKeyToExpression( ruleKey, layer, ok ) : QString();
if ( ok )
{
const QString canvasFilter = QgsMapCanvasUtils::filterForLayer( QgisApp::instance()->mapCanvas(), layer );
if ( canvasFilter == QLatin1String( "FALSE" ) )
return;
else if ( !canvasFilter.isEmpty() )
filterExp = QStringLiteral( "(%1) AND (%2)" ).arg( filterExp, canvasFilter );

QgisApp::instance()->attributeTable( QgsAttributeTableFilterModel::ShowFilteredList, filterExp );
}
}
Expand Down

0 comments on commit 01905bf

Please sign in to comment.