mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Merge pull request #1966 from olivierdalang/show_selected_features_ALL_IF_NO_SEL
Filter the attribute table only by selection if there is one Fix #7541
This commit is contained in:
commit
288b242aa9
@ -177,7 +177,7 @@ bool QgsAttributeTableFilterModel::filterAcceptsRow( int sourceRow, const QModel
|
||||
return mFilteredFeatures.contains( masterModel()->rowToId( sourceRow ) );
|
||||
|
||||
case ShowSelected:
|
||||
return layer()->selectedFeaturesIds().contains( masterModel()->rowToId( sourceRow ) );
|
||||
return layer()->selectedFeaturesIds().isEmpty() || layer()->selectedFeaturesIds().contains( masterModel()->rowToId( sourceRow ) );
|
||||
|
||||
case ShowVisible:
|
||||
return mFilteredFeatures.contains( masterModel()->rowToId( sourceRow ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user