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 committed Nov 4, 2011
1 parent 8da496e commit 5be1d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/legend/qgslegendlayer.cpp
Expand Up @@ -477,7 +477,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 5be1d74

Please sign in to comment.