Skip to content

Commit

Permalink
Re-allow creation of postgres connections with ONLY a database name
Browse files Browse the repository at this point in the history
entered

This configuration works and was previously supported
  • Loading branch information
nyalldawson committed May 14, 2020
1 parent 160063a commit cfc202a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspgnewconnection.cpp
Expand Up @@ -250,6 +250,6 @@ void QgsPgNewConnection::updateOkButtonState()
{
bool enabled = !txtName->text().isEmpty() && (
!txtService->text().isEmpty() ||
( !txtHost->text().isEmpty() && !txtPort->text().isEmpty() && !txtDatabase->text().isEmpty() ) );
!txtDatabase->text().isEmpty() );
buttonBox->button( QDialogButtonBox::Ok )->setEnabled( enabled );
}

0 comments on commit cfc202a

Please sign in to comment.