Skip to content

Commit

Permalink
Hide query entry in legend context menu for layers with joins
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent authored and mach0 committed Nov 13, 2011
1 parent 8022855 commit 278679b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/legend/qgslegendlayer.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 278679b

Please sign in to comment.