Skip to content
Permalink
Browse files

Show SSL modes also when adding new DB connection.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10859 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed May 28, 2009
1 parent 6de9dfc commit 34d6cf3350cd3cd4c6f67bfef9c92ea7d87a280c
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/app/qgsnewconnection.cpp
@@ -34,6 +34,12 @@ QgsNewConnection::QgsNewConnection( QWidget *parent, const QString& connName, Qt
: QDialog( parent, fl )
{
setupUi( this );

cbxSSLmode->insertItem( QgsDataSourceURI::SSLprefer, tr( "prefer" ) );
cbxSSLmode->insertItem( QgsDataSourceURI::SSLrequire, tr( "require" ) );
cbxSSLmode->insertItem( QgsDataSourceURI::SSLallow, tr( "allow" ) );
cbxSSLmode->insertItem( QgsDataSourceURI::SSLdisable, tr( "disable" ) );

if ( !connName.isEmpty() )
{
// populate the dialog with the information stored for the connection
@@ -61,10 +67,6 @@ QgsNewConnection::QgsNewConnection( QWidget *parent, const QString& connName, Qt
// Ensure that cb_plublicSchemaOnly is set correctly
on_cb_geometryColumnsOnly_clicked();

cbxSSLmode->insertItem( QgsDataSourceURI::SSLprefer, tr( "prefer" ) );
cbxSSLmode->insertItem( QgsDataSourceURI::SSLrequire, tr( "require" ) );
cbxSSLmode->insertItem( QgsDataSourceURI::SSLallow, tr( "allow" ) );
cbxSSLmode->insertItem( QgsDataSourceURI::SSLdisable, tr( "disable" ) );
cbxSSLmode->setCurrentIndex( settings.value( key + "/sslmode", QgsDataSourceURI::SSLprefer ).toInt() );

if ( settings.value( key + "/save" ).toString() == "true" )

0 comments on commit 34d6cf3

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