diff --git a/src/gui/attributetable/qgsdualview.cpp b/src/gui/attributetable/qgsdualview.cpp index 09fe8b289552..282b0d09c0d8 100644 --- a/src/gui/attributetable/qgsdualview.cpp +++ b/src/gui/attributetable/qgsdualview.cpp @@ -1339,7 +1339,7 @@ void QgsDualView::setAttributeTableConfig( const QgsAttributeTableConfig &config if ( QgsExpression( config.sortExpression() ).needsGeometry() ) { mLayerCache->setCacheGeometry( true ); - request.setFlags( request.flags().setFlag( Qgis::FeatureRequestFlag::NoGeometry, false ) ); + request.setFlags( request.flags().setFlag( QgsFeatureRequest::NoGeometry, false ) ); } request.setSubsetOfAttributes( attributes ); mMasterModel->setRequest( request );