Skip to content

Commit

Permalink
save/restore tile pixel ratio for XYZ connections when performing
Browse files Browse the repository at this point in the history
import/export
  • Loading branch information
alexbruy committed Apr 23, 2020
1 parent c34210e commit 2239b30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsmanageconnectionsdialog.cpp
Expand Up @@ -718,6 +718,7 @@ QDomDocument QgsManageConnectionsDialog::saveXyzTilesConnections( const QStringL
el.setAttribute( QStringLiteral( "username" ), settings.value( path + "/username" ).toString() );
el.setAttribute( QStringLiteral( "password" ), settings.value( path + "/password" ).toString() );
el.setAttribute( QStringLiteral( "referer" ), settings.value( path + "/referer" ).toString() );
el.setAttribute( QStringLiteral( "tilePixelRatio" ), settings.value( path + "/tilePixelRatio", 0 ).toDouble() );

root.appendChild( el );
}
Expand Down Expand Up @@ -1460,6 +1461,7 @@ void QgsManageConnectionsDialog::loadXyzTilesConnections( const QDomDocument &do
settings.setValue( QStringLiteral( "username" ), child.attribute( QStringLiteral( "username" ) ) );
settings.setValue( QStringLiteral( "password" ), child.attribute( QStringLiteral( "password" ) ) );
settings.setValue( QStringLiteral( "referer" ), child.attribute( QStringLiteral( "referer" ) ) );
settings.setValue( QStringLiteral( "tilePixelRatio" ), child.attribute( QStringLiteral( "tilePixelRatio" ) ) );
settings.endGroup();

child = child.nextSiblingElement();
Expand Down

0 comments on commit 2239b30

Please sign in to comment.