Skip to content

Commit

Permalink
[attributetable] No autofallback to FilterMode::ShowVisible
Browse files Browse the repository at this point in the history
As soon as extents of the map canvas changed, the filter showvisible was reapplied without a reason
  • Loading branch information
m-kuhn committed Apr 19, 2013
1 parent bfef00a commit 310e2de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/attributetable/qgsattributetablefiltermodel.cpp
Expand Up @@ -123,7 +123,7 @@ bool QgsAttributeTableFilterModel::selectedOnTop()
void QgsAttributeTableFilterModel::setFilteredFeatures( QgsFeatureIds ids )
{
mFilteredFeatures = ids;
mFilterMode = ShowFilteredList;
setFilterMode( ShowFilteredList );
invalidateFilter();
}

Expand All @@ -133,12 +133,12 @@ void QgsAttributeTableFilterModel::setFilterMode( FilterMode filterMode )
{
if ( filterMode == ShowVisible )
{
connect( mCanvas, SIGNAL( extentsChanged() ), SLOT( extentsChanged() ) );
connect( mCanvas, SIGNAL( extentsChanged() ), this, SLOT( extentsChanged() ) );
generateListOfVisibleFeatures();
}
else
{
disconnect( SLOT( extentsChanged() ) );
disconnect( mCanvas, SIGNAL( extentsChanged() ), this, SLOT( extentsChanged() ) );
}

if ( filterMode == ShowSelected )
Expand Down

0 comments on commit 310e2de

Please sign in to comment.