Skip to content

Commit

Permalink
Fix a crash when reordering a vector tile layer in layer tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 21, 2020
1 parent af1576a commit 45bead2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmimedatautils.cpp
Expand Up @@ -67,7 +67,7 @@ QgsMimeDataUtils::Uri::Uri( const QString &encData )
QgsMimeDataUtils::Uri::Uri( QgsMapLayer *layer )
: providerKey( layer->providerType() )
, name( layer->name() )
, uri( layer->dataProvider()->dataSourceUri() )
, uri( layer->dataProvider() ? layer->dataProvider()->dataSourceUri() : layer->source() )
, layerId( layer->id() )
, pId( QString::number( QCoreApplication::applicationPid() ) )
{
Expand Down

0 comments on commit 45bead2

Please sign in to comment.