Skip to content

Commit 34d6cf3

Browse files
author
wonder
committedMay 28, 2009
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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎src/app/qgsnewconnection.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ QgsNewConnection::QgsNewConnection( QWidget *parent, const QString& connName, Qt
3434
: QDialog( parent, fl )
3535
{
3636
setupUi( this );
37+
38+
cbxSSLmode->insertItem( QgsDataSourceURI::SSLprefer, tr( "prefer" ) );
39+
cbxSSLmode->insertItem( QgsDataSourceURI::SSLrequire, tr( "require" ) );
40+
cbxSSLmode->insertItem( QgsDataSourceURI::SSLallow, tr( "allow" ) );
41+
cbxSSLmode->insertItem( QgsDataSourceURI::SSLdisable, tr( "disable" ) );
42+
3743
if ( !connName.isEmpty() )
3844
{
3945
// populate the dialog with the information stored for the connection
@@ -61,10 +67,6 @@ QgsNewConnection::QgsNewConnection( QWidget *parent, const QString& connName, Qt
6167
// Ensure that cb_plublicSchemaOnly is set correctly
6268
on_cb_geometryColumnsOnly_clicked();
6369

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.