mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-30 00:29:39 -05:00
Update src/app/qgsattributetabledialog.cpp
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
This commit is contained in:
parent
29c0457b62
commit
7e86c30c18
@ -218,10 +218,10 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *layer, QgsAttr
|
||||
request.setFilterExpression( filterExpression );
|
||||
}
|
||||
|
||||
if ( !needsGeom && ( !mLayer || !QgsExpression( mLayer->attributeTableConfig().sortExpression() ).needsGeometry() ) )
|
||||
{
|
||||
// If sort expression requires geometry, we'll need to fetch it
|
||||
needsGeom |= mLayer && QgsExpression( mLayer->attributeTableConfig().sortExpression() ).needsGeometry();
|
||||
if ( !needsGeom )
|
||||
request.setFlags( Qgis::FeatureRequestFlag::NoGeometry );
|
||||
}
|
||||
|
||||
// Initialize dual view
|
||||
if ( mLayer )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user