From 408c8410567ec9e7542d966bf912bf2125704da1 Mon Sep 17 00:00:00 2001 From: Julien Cabieces Date: Wed, 5 Mar 2025 08:42:09 +0100 Subject: [PATCH] fix(Oracle): Synchronize test connection button state with OK button --- src/providers/oracle/qgsoraclenewconnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/oracle/qgsoraclenewconnection.cpp b/src/providers/oracle/qgsoraclenewconnection.cpp index c3efc7b7f4e6..04ac015036c3 100644 --- a/src/providers/oracle/qgsoraclenewconnection.cpp +++ b/src/providers/oracle/qgsoraclenewconnection.cpp @@ -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 ); @@ -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 ); }