Skip to content
Permalink
Browse files

use username and password for pg connection test, even if they are no…

…t going to be saved

git-svn-id: http://svn.osgeo.org/qgis/trunk@14379 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Oct 14, 2010
1 parent 12a404a commit 6740566ae4a1eab75538913b05e5194420fddc2b
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/postgres/qgspgnewconnection.cpp
@@ -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 + "\");" );

0 comments on commit 6740566

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