Skip to content

Commit

Permalink
Do not check if database name is filled when using services
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrocha committed May 4, 2020
1 parent 79e7bde commit c90ce4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspgnewconnection.cpp
Expand Up @@ -249,7 +249,7 @@ void QgsPgNewConnection::showHelp()
void QgsPgNewConnection::updateOkButtonState()
{
bool enabled = !txtName->text().isEmpty() && (
( !txtService->text().isEmpty() && txtDatabase->text().isEmpty() ) ||
!txtService->text().isEmpty() ||
( !txtHost->text().isEmpty() && !txtPort->text().isEmpty() && !txtDatabase->text().isEmpty() ) );
buttonBox->button( QDialogButtonBox::Ok )->setEnabled( enabled );
}

0 comments on commit c90ce4e

Please sign in to comment.