Skip to content

Commit

Permalink
do not ask again for CRS when loading qgsproject with mesh layer
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 24, 2018
1 parent 9c1dc79 commit f377498
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/mesh/qgsmeshlayer.cpp
Expand Up @@ -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 ) );

Expand Down

0 comments on commit f377498

Please sign in to comment.