[QGIS Commit] r14379 - trunk/qgis/src/app/postgres

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Oct 14 11:24:20 EDT 2010


Author: jef
Date: 2010-10-14 08:24:19 -0700 (Thu, 14 Oct 2010)
New Revision: 14379

Modified:
   trunk/qgis/src/app/postgres/qgspgnewconnection.cpp
Log:
use username and password for pg connection test, even if they are not going to be saved

Modified: trunk/qgis/src/app/postgres/qgspgnewconnection.cpp
===================================================================
--- trunk/qgis/src/app/postgres/qgspgnewconnection.cpp	2010-10-13 20:54:40 UTC (rev 14378)
+++ trunk/qgis/src/app/postgres/qgspgnewconnection.cpp	2010-10-14 15:24:19 UTC (rev 14379)
@@ -161,8 +161,7 @@
 {
   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 + "\");" );



More information about the QGIS-commit mailing list