Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix unreported bug with custom ssl options
The unsupported protocols have been removed from the
name method but they were still in the combo (with empty
labels).
  • Loading branch information
elpaso committed May 28, 2021
1 parent c29288f commit 9e704bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/auth/qgsauthsslconfigwidget.cpp
Expand Up @@ -120,14 +120,18 @@ void QgsAuthSslConfigWidget::setUpSslConfigTree()
mProtocolCmbBx = new QComboBox( treeSslConfig );
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::SecureProtocols ),
static_cast<int>( QSsl::SecureProtocols ) );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::TlsV1SslV3 ),
static_cast<int>( QSsl::TlsV1SslV3 ) );
#endif
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::TlsV1_0 ),
static_cast<int>( QSsl::TlsV1_0 ) );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::SslV3 ),
static_cast<int>( QSsl::SslV3 ) );
mProtocolCmbBx->addItem( QgsAuthCertUtils::getSslProtocolName( QSsl::SslV2 ),
static_cast<int>( QSsl::SslV2 ) );
#endif
mProtocolCmbBx->setMaximumWidth( 300 );
mProtocolCmbBx->setCurrentIndex( 0 );
QTreeWidgetItem *protocolitem = new QTreeWidgetItem(
Expand Down

0 comments on commit 9e704bd

Please sign in to comment.