diff --git a/src/gui/qgsnewhttpconnection.cpp b/src/gui/qgsnewhttpconnection.cpp index a444bc43d930..3327a5f4c6d7 100644 --- a/src/gui/qgsnewhttpconnection.cpp +++ b/src/gui/qgsnewhttpconnection.cpp @@ -187,10 +187,10 @@ QgsNewHttpConnection::QgsNewHttpConnection( QWidget *parent, ConnectionTypes typ void QgsNewHttpConnection::wfsVersionCurrentIndexChanged( int index ) { // For now 2019-06-06, leave paging checkable for some WFS version 1.1 servers with support - cmbFeaturePaging->setEnabled( index == WFS_VERSION_MAX || index >= WFS_VERSION_2_0 ); - const bool pagingNotDisabled = cmbFeaturePaging->currentIndex() != static_cast( QgsNewHttpConnection::WfsFeaturePagingIndex::DISABLED ); - lblPageSize->setEnabled( pagingNotDisabled && ( index == WFS_VERSION_MAX || index >= WFS_VERSION_1_1 ) ); - txtPageSize->setEnabled( pagingNotDisabled && ( index == WFS_VERSION_MAX || index >= WFS_VERSION_1_1 ) ); + const bool pagingOptionsEnabled = ( index == WFS_VERSION_MAX || index >= WFS_VERSION_1_1 ); + cmbFeaturePaging->setEnabled( pagingOptionsEnabled ); + lblPageSize->setEnabled( pagingOptionsEnabled ); + txtPageSize->setEnabled( pagingOptionsEnabled ); cbxWfsIgnoreAxisOrientation->setEnabled( index != WFS_VERSION_1_0 && index != WFS_VERSION_API_FEATURES_1_0 ); cbxWfsInvertAxisOrientation->setEnabled( index != WFS_VERSION_API_FEATURES_1_0 ); wfsUseGml2EncodingForTransactions()->setEnabled( index == WFS_VERSION_1_1 );