Skip to content

Commit 53349fa

Browse files
author
jef
committed
use username and password for pg connection test, even if they are not going to be saved
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14379 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ce44811 commit 53349fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/postgres/qgspgnewconnection.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ void QgsPgNewConnection::testConnection()
161161
{
162162
QgsDataSourceURI uri;
163163
uri.setConnection( txtHost->text(), txtPort->text(), txtDatabase->text(),
164-
chkStoreUsername->isChecked() ? txtUsername->text() : "",
165-
chkStorePassword->isChecked() ? txtPassword->text() : "",
164+
txtUsername->text(), txtPassword->text(),
166165
( QgsDataSourceURI::SSLmode ) cbxSSLmode->itemData( cbxSSLmode->currentIndex() ).toInt() );
167166
QString conninfo = uri.connectionInfo();
168167
QgsDebugMsg( "PQconnectdb(\"" + conninfo + "\");" );

0 commit comments

Comments
 (0)