Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/app/qgsapplayertreeviewmenuprovider.cpp
Original file line number Diff line number Diff line change
@@ -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 );
}
}

0 comments on commit 01905bf

Please sign in to comment.