Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[feature] filter the attribute table only if there is a selection (fe…
…ature #7541)
  • Loading branch information
olivierdalang committed Mar 26, 2015
1 parent 80bbed1 commit f9ee7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablefiltermodel.cpp
Expand Up @@ -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 ) );
Expand Down

0 comments on commit f9ee7a3

Please sign in to comment.