File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ void QgsPgNewConnection::testConnection()
168
168
169
169
PGconn *pd = PQconnectdb ( conninfo.toLocal8Bit () ); // use what is set based on locale; after connecting, use Utf8
170
170
// check the connection status
171
- if ( PQstatus ( pd ) != CONNECTION_OK && QString::fromUtf8 ( PQerrorMessage ( pd ) ) == PQnoPasswordSupplied )
171
+ if ( PQstatus ( pd ) != CONNECTION_OK )
172
172
{
173
173
QString username = txtUsername->text ();
174
174
QString password = txtPassword->text ();
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ void QgsPgSourceSelect::on_btnConnect_clicked()
445
445
446
446
pd = PQconnectdb ( m_privConnInfo.toLocal8Bit () ); // use what is set based on locale; after connecting, use Utf8
447
447
// check the connection status
448
- if ( PQstatus ( pd ) != CONNECTION_OK && QString::fromUtf8 ( PQerrorMessage ( pd ) ) == PQnoPasswordSupplied )
448
+ if ( PQstatus ( pd ) != CONNECTION_OK )
449
449
{
450
450
while ( PQstatus ( pd ) != CONNECTION_OK )
451
451
{
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ QgsPostgresProvider::Conn *QgsPostgresProvider::Conn::connectDb( const QString &
215
215
216
216
PGconn *pd = PQconnectdb ( conninfo.toLocal8Bit () ); // use what is set based on locale; after connecting, use Utf8
217
217
// check the connection status
218
- if ( PQstatus ( pd ) != CONNECTION_OK && QString::fromUtf8 ( PQerrorMessage ( pd ) ) == PQnoPasswordSupplied )
218
+ if ( PQstatus ( pd ) != CONNECTION_OK )
219
219
{
220
220
QgsDataSourceURI uri ( conninfo );
221
221
QString username = uri.username ();
You can’t perform that action at this time.
0 commit comments