Skip to content

Commit

Permalink
Show SSL modes also when adding new DB connection.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10859 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed May 28, 2009
1 parent bcfaf57 commit 3d651d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/qgsnewconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" )
Expand Down

0 comments on commit 3d651d6

Please sign in to comment.