Skip to content

Commit

Permalink
fix(Oracle): Synchronize test connection button state with OK button
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Mar 5, 2025
1 parent 64d82d4 commit 408c841
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/oracle/qgsoraclenewconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ QgsOracleNewConnection::QgsOracleNewConnection( QWidget *parent, const QString &
connect( btnConnect, &QPushButton::clicked, this, &QgsOracleNewConnection::testConnection );

buttonBox->button( QDialogButtonBox::Ok )->setDisabled( true );
btnConnect->setDisabled( true );
connect( txtName, &QLineEdit::textChanged, this, &QgsOracleNewConnection::updateOkButtonState );
connect( txtDatabase, &QLineEdit::textChanged, this, &QgsOracleNewConnection::updateOkButtonState );
connect( txtHost, &QLineEdit::textChanged, this, &QgsOracleNewConnection::updateOkButtonState );
Expand Down Expand Up @@ -219,4 +220,5 @@ void QgsOracleNewConnection::updateOkButtonState()
bool enabled = !txtName->text().isEmpty() && !txtDatabase->text().isEmpty()
&& ( txtHost->text().isEmpty() == txtPort->text().isEmpty() );
buttonBox->button( QDialogButtonBox::Ok )->setEnabled( enabled );
btnConnect->setEnabled( enabled );
}

0 comments on commit 408c841

Please sign in to comment.