Skip to content
Permalink
Browse files

[attributetable] No autofallback to FilterMode::ShowVisible

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 310e2ded4d6b6b5f581844755ad0794efcefdda7
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/attributetable/qgsattributetablefiltermodel.cpp
@@ -123,7 +123,7 @@ bool QgsAttributeTableFilterModel::selectedOnTop()
void QgsAttributeTableFilterModel::setFilteredFeatures( QgsFeatureIds ids )
{
mFilteredFeatures = ids;
mFilterMode = ShowFilteredList;
setFilterMode( ShowFilteredList );
invalidateFilter();
}

@@ -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 )

0 comments on commit 310e2de

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