Skip to content
Permalink
Browse files

Add menu items also if invalid (but check for it)

  • Loading branch information
elpaso committed Oct 20, 2018
1 parent bc4a1ef commit bcd8581f890b1da93b0c71ad284b8f68f0b4d820
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsapplayertreeviewmenuprovider.cpp
@@ -138,6 +138,8 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
QgsRasterLayer *rlayer = qobject_cast<QgsRasterLayer *>( layer );
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );

// TODO: check if it is not valid and offer set data source

if ( layer && layer->isSpatial() )
{
menu->addAction( actions->actionZoomToLayer( mCanvas, menu ) );

0 comments on commit bcd8581

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