Skip to content
Permalink
Browse files

QString()

  • Loading branch information
mhugent committed Mar 22, 2020
1 parent db74e45 commit 132e674abbb9f99598266a7381e82a1c4b369ec9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgslayerdefinition.cpp
@@ -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 ) )

0 comments on commit 132e674

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