Skip to content

Commit

Permalink
QString()
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Mar 22, 2020
1 parent db74e45 commit 132e674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgslayerdefinition.cpp
Expand Up @@ -211,7 +211,7 @@ bool QgsLayerDefinition::exportLayerDefinition( QString path, const QList<QgsLay

QgsReadWriteContext context;
bool writeAbsolutePath = QgsProject::instance()->readBoolEntry( QStringLiteral( "Paths" ), QStringLiteral( "/Absolute" ), false );
context.setPathResolver( QgsPathResolver( writeAbsolutePath ? QStringLiteral( "" ) : path ) );
context.setPathResolver( QgsPathResolver( writeAbsolutePath ? QString() : path ) );

QDomDocument doc( QStringLiteral( "qgis-layer-definition" ) );
if ( !exportLayerDefinition( doc, selectedTreeNodes, errorMessage, context ) )
Expand Down

0 comments on commit 132e674

Please sign in to comment.