Skip to content

Commit

Permalink
use username and password for pg connection test, even if they are no…
Browse files Browse the repository at this point in the history
…t going to be saved

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14379 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 14, 2010
1 parent ce44811 commit 53349fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/postgres/qgspgnewconnection.cpp
Expand Up @@ -161,8 +161,7 @@ void QgsPgNewConnection::testConnection()
{
QgsDataSourceURI uri;
uri.setConnection( txtHost->text(), txtPort->text(), txtDatabase->text(),
chkStoreUsername->isChecked() ? txtUsername->text() : "",
chkStorePassword->isChecked() ? txtPassword->text() : "",
txtUsername->text(), txtPassword->text(),
( QgsDataSourceURI::SSLmode ) cbxSSLmode->itemData( cbxSSLmode->currentIndex() ).toInt() );
QString conninfo = uri.connectionInfo();
QgsDebugMsg( "PQconnectdb(\"" + conninfo + "\");" );
Expand Down

0 comments on commit 53349fa

Please sign in to comment.