mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[mssql] Reallow creating connections with empty provider/dsn strings
Fixes #37427
This commit is contained in:
parent
62b88463cc
commit
89298373e0
@ -41,7 +41,6 @@ QgsMssqlNewConnection::QgsMssqlNewConnection( QWidget *parent, const QString &co
|
||||
|
||||
buttonBox->button( QDialogButtonBox::Ok )->setDisabled( true );
|
||||
connect( txtName, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::updateOkButtonState );
|
||||
connect( txtService, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::updateOkButtonState );
|
||||
connect( txtHost, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::updateOkButtonState );
|
||||
connect( listDatabase, &QListWidget::currentItemChanged, this, &QgsMssqlNewConnection::updateOkButtonState );
|
||||
|
||||
@ -253,6 +252,6 @@ void QgsMssqlNewConnection::showHelp()
|
||||
void QgsMssqlNewConnection::updateOkButtonState()
|
||||
{
|
||||
QListWidgetItem *item = listDatabase->currentItem();
|
||||
bool enabled = !txtName->text().isEmpty() && !txtService->text().isEmpty() && !txtHost->text().isEmpty() && item;
|
||||
bool enabled = !txtName->text().isEmpty() && !txtHost->text().isEmpty() && item;
|
||||
buttonBox->button( QDialogButtonBox::Ok )->setEnabled( enabled );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user