Skip to content
Permalink
Browse files

Don't show unwanted error messages relating to loading default metada…

…ta/style for pointcloud layers
  • Loading branch information
nyalldawson committed Oct 27, 2020
1 parent 09e87b8 commit fa1ce4d2bc58fc561f83cf9d6f5089833269bc0d
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/app/qgisapp.cpp
@@ -5786,12 +5786,8 @@ QgsPointCloudLayer *QgisApp::addPointCloudLayerPrivate( const QString &uri, cons
return nullptr;
}
bool ok = false;
QString error = layer->loadDefaultStyle( ok );
if ( !ok )
visibleMessageBar()->pushMessage( tr( "Error loading style" ), error, Qgis::Warning, messageTimeout() );
error = layer->loadDefaultMetadata( ok );
if ( !ok )
visibleMessageBar()->pushMessage( tr( "Error loading layer metadata" ), error, Qgis::Warning, messageTimeout() );
layer->loadDefaultStyle( ok );
layer->loadDefaultMetadata( ok );

QgsProject::instance()->addMapLayer( layer.get() );
activateDeactivateLayerRelatedActions( activeLayer() );

0 comments on commit fa1ce4d

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