Skip to content
Permalink
Browse files

[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 f9ee7a3b3dd88f0fb5c546afa65122f3ec01f61a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsattributetablefiltermodel.cpp
@@ -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 ) );

0 comments on commit f9ee7a3

Please sign in to comment.
You can’t perform that action at this time.