Skip to content

Commit

Permalink
Set range for port validator in HANA to 1-65535
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Rylov authored and mrylov committed Dec 7, 2020
1 parent e1b6125 commit 25da0e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/providers/hana/qgshananewconnection.cpp
Expand Up @@ -57,10 +57,10 @@ QgsHanaNewConnection::QgsHanaNewConnection(

txtDriver->setText( QgsHanaDriver::instance()->getDriver() );

cbxCryptoProvider->addItem( tr( "openssl" ), QLatin1String( "openssl" ) );
cbxCryptoProvider->addItem( tr( "commoncrypto" ), QLatin1String( "commoncrypto" ) );
cbxCryptoProvider->addItem( tr( "sapcrypto" ), QLatin1String( "sapcrypto" ) );
cbxCryptoProvider->addItem( tr( "mscrypto" ), QLatin1String( "mscrypto" ) );
cbxCryptoProvider->addItem( tr( "openssl" ), QStringLiteral( "openssl" ) );
cbxCryptoProvider->addItem( tr( "commoncrypto" ), QStringLiteral( "commoncrypto" ) );
cbxCryptoProvider->addItem( tr( "sapcrypto" ), QStringLiteral( "sapcrypto" ) );
cbxCryptoProvider->addItem( tr( "mscrypto" ), QStringLiteral( "mscrypto" ) );

mAuthSettings->setDataprovider( QStringLiteral( "hana" ) );
mAuthSettings->showStoreCheckboxes( true );
Expand Down Expand Up @@ -172,7 +172,7 @@ void QgsHanaNewConnection::cmbIdentifierType_changed( int index )
else
{
txtIdentifier->setMaxLength( 5 );
txtIdentifier->setValidator( new QIntValidator( 10000, 99999, this ) );
txtIdentifier->setValidator( new QIntValidator( 1, 65535, this ) );
txtIdentifier->setText( QStringLiteral( "00000" ) );
}
}
Expand Down

0 comments on commit 25da0e8

Please sign in to comment.