Skip to content
Permalink
Browse files
Save/load projectsInDatabase in PG connections
Fix #45508
  • Loading branch information
elpaso committed Oct 14, 2021
1 parent 2d703b6 commit e2e5a7276fa95664e30a11f16612ab030d7dff92
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 e2e5a72

Please sign in to comment.