Skip to content
Permalink
Browse files

do not ask again for CRS when loading qgsproject with mesh layer

  • Loading branch information
PeterPetrik committed Sep 24, 2018
1 parent 9c1dc79 commit f377498157199815f80ea01e8918c4e9f4e925d4
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/core/mesh/qgsmeshlayer.cpp
@@ -40,9 +40,12 @@ QgsMeshLayer::QgsMeshLayer( const QString &meshLayerPath,
: QgsMapLayer( MeshLayer, baseName, meshLayerPath )
, mProviderKey( providerKey )
{
// load data
QgsDataProvider::ProviderOptions providerOptions;
setDataProvider( providerKey, providerOptions );
// if we’re given a provider type, try to create and bind one to this layer
if ( !meshLayerPath.isEmpty() && !providerKey.isEmpty() )
{
QgsDataProvider::ProviderOptions providerOptions;
setDataProvider( providerKey, providerOptions );
}

setLegend( QgsMapLayerLegend::defaultMeshLegend( this ) );

0 comments on commit f377498

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