Skip to content
Permalink
Browse files

Point cloud layer data sources can be changed via menu

  • Loading branch information
nyalldawson committed Oct 26, 2020
1 parent 59a6035 commit 000e30f44f0600775856e800b83427be5693fe53
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgsapplayertreeviewmenuprovider.cpp
@@ -145,6 +145,7 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
QgsMapLayer *layer = QgsLayerTree::toLayer( node )->layer();
QgsRasterLayer *rlayer = qobject_cast<QgsRasterLayer *>( layer );
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
QgsPointCloudLayer *pcLayer = qobject_cast<QgsPointCloudLayer * >( layer );

if ( layer && layer->isSpatial() )
{
@@ -270,8 +271,8 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
menu->addAction( tr( "&Filter…" ), QgisApp::instance(), qgis::overload<>::of( &QgisApp::layerSubsetString ) );
}

// change data source is only supported for vectors and rasters
if ( vlayer || rlayer )
// change data source is only supported for vectors and rasters, point clouds
if ( vlayer || rlayer || pcLayer )
{

QAction *a = new QAction( layer->isValid() ? tr( "Change Data Source…" ) : tr( "Repair Data Source…" ), menu );

0 comments on commit 000e30f

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