Skip to content
Permalink
Browse files
Merge pull request #45523 from elpaso/bugfix-gh45508-pg-export-load-c…
…onn-projectsInDatabase

Save/load projectsInDatabase in PG connections
  • Loading branch information
elpaso committed Oct 15, 2021
2 parents 697f2bc + e2e5a72 commit 134d3bff20fa606c6b5c99773585b468dc22f5bd
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmanageconnectionsdialog.cpp
@@ -540,6 +540,7 @@ QDomDocument QgsManageConnectionsDialog::savePgConnections( const QStringList &c
el.setAttribute( QStringLiteral( "service" ), settings.value( path + "/service" ).toString() );
el.setAttribute( QStringLiteral( "sslmode" ), settings.value( path + "/sslmode", "1" ).toString() );
el.setAttribute( QStringLiteral( "estimatedMetadata" ), settings.value( path + "/estimatedMetadata", "0" ).toString() );
el.setAttribute( QStringLiteral( "projectsInDatabase" ), settings.value( path + "/projectsInDatabase", "0" ).toString() );

el.setAttribute( QStringLiteral( "saveUsername" ), settings.value( path + "/saveUsername", "false" ).toString() );

@@ -1125,6 +1126,7 @@ void QgsManageConnectionsDialog::loadPgConnections( const QDomDocument &doc, con
}
settings.setValue( QStringLiteral( "/sslmode" ), child.attribute( QStringLiteral( "sslmode" ) ) );
settings.setValue( QStringLiteral( "/estimatedMetadata" ), child.attribute( QStringLiteral( "estimatedMetadata" ) ) );
settings.setValue( QStringLiteral( "/projectsInDatabase" ), child.attribute( QStringLiteral( "projectsInDatabase" ), 0 ) );
settings.setValue( QStringLiteral( "/saveUsername" ), child.attribute( QStringLiteral( "saveUsername" ) ) );
settings.setValue( QStringLiteral( "/username" ), child.attribute( QStringLiteral( "username" ) ) );
settings.setValue( QStringLiteral( "/savePassword" ), child.attribute( QStringLiteral( "savePassword" ) ) );

0 comments on commit 134d3bf

Please sign in to comment.