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@14379 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 14, 2010
1 parent 12a404a commit 6740566
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/postgres/qgspgnewconnection.cpp
Original file line number Diff line number Diff line change
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 6740566

Please sign in to comment.