Skip to content
Permalink
Browse files

Hide query entry in legend context menu for layers with joins

  • Loading branch information
mhugent committed Nov 4, 2011
1 parent 4fdc8cb commit 2d37a49b35d20b57067a4e9c4288c4f7ca73e0e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/legend/qgslegendlayer.cpp
@@ -472,7 +472,7 @@ void QgsLegendLayer::addToPopupMenu( QMenu& theMenu )
saveSelectionAsAction->setEnabled( false );
}

if ( !vlayer->isEditable() && vlayer->dataProvider()->supportsSubsetString() )
if ( !vlayer->isEditable() && vlayer->dataProvider()->supportsSubsetString() && vlayer->vectorJoins().isEmpty() )
theMenu.addAction( tr( "&Query..." ), QgisApp::instance(), SLOT( layerSubsetString() ) );

//show number of features in legend if requested

0 comments on commit 2d37a49

Please sign in to comment.
You can’t perform that action at this time.