Skip to content

Commit f9ee7a3

Browse files
committedMar 26, 2015
[feature] filter the attribute table only if there is a selection (feature #7541)
1 parent 80bbed1 commit f9ee7a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/attributetable/qgsattributetablefiltermodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ bool QgsAttributeTableFilterModel::filterAcceptsRow( int sourceRow, const QModel
177177
return mFilteredFeatures.contains( masterModel()->rowToId( sourceRow ) );
178178

179179
case ShowSelected:
180-
return layer()->selectedFeaturesIds().contains( masterModel()->rowToId( sourceRow ) );
180+
return layer()->selectedFeaturesIds().isEmpty() || layer()->selectedFeaturesIds().contains( masterModel()->rowToId( sourceRow ) );
181181

182182
case ShowVisible:
183183
return mFilteredFeatures.contains( masterModel()->rowToId( sourceRow ) );

0 commit comments

Comments
 (0)
Please sign in to comment.