Skip to content
Permalink
Browse files
Save/load projectsInDatabase in PG connections
Fix #45508
  • Loading branch information
elpaso authored and nyalldawson committed Nov 1, 2021
1 parent ce106c8 commit ef0d9a467a4593522cba3d9388b5fe2ce23a0c40
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmanageconnectionsdialog.cpp
@@ -523,6 +523,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() );

@@ -1059,6 +1060,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 ef0d9a4

Please sign in to comment.