Skip to content
Permalink
Browse files

Do not check if database name is filled when using services

  • Loading branch information
jgrocha committed May 4, 2020
1 parent 79e7bde commit c90ce4ecd6c084a6b18edf6dc8f0bc21f76b891c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspgnewconnection.cpp
@@ -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.
You can’t perform that action at this time.