Skip to content

Commit

Permalink
QgsVectorLayerCache: include edit buffer changes as well
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 15, 2013
1 parent 2d07fa6 commit 47fa53e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions src/core/qgscachedfeatureiterator.cpp
Expand Up @@ -15,7 +15,6 @@

#include "qgscachedfeatureiterator.h"
#include "qgsvectorlayercache.h"
#include "qgsvectordataprovider.h"

QgsCachedFeatureIterator::QgsCachedFeatureIterator( QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest, QgsFeatureIds featureIds )
: QgsAbstractFeatureIterator( featureRequest )
Expand Down Expand Up @@ -56,7 +55,7 @@ QgsCachedFeatureWriterIterator::QgsCachedFeatureWriterIterator( QgsVectorLayerCa
: QgsAbstractFeatureIterator( featureRequest )
, mVectorLayerCache( vlCache )
{
mFeatIt = vlCache->layer()->dataProvider()->getFeatures( featureRequest );
mFeatIt = vlCache->layer()->getFeatures( featureRequest );
}

bool QgsCachedFeatureWriterIterator::nextFeature( QgsFeature& f )
Expand Down
7 changes: 0 additions & 7 deletions src/gui/attributetable/qgsattributetableview.cpp
Expand Up @@ -125,13 +125,6 @@ void QgsAttributeTableView::setModel( QgsAttributeTableFilterModel* filterModel
mTableDelegate->setFeatureSelectionModel( mFeatureSelectionModel );
connect( mFeatureSelectionModel, SIGNAL( requestRepaint( QModelIndexList ) ), this, SLOT( repaintRequested( QModelIndexList ) ) );
connect( mFeatureSelectionModel, SIGNAL( requestRepaint() ), this, SLOT( repaintRequested() ) );

if ( filterModel )
{
// Connect new model stuff
connect( mFilterModel, SIGNAL( filterAboutToBeInvalidated() ), SLOT( onFilterAboutToBeInvalidated() ) );
connect( mFilterModel, SIGNAL( filterInvalidated() ), SLOT( onFilterInvalidated() ) );
}
}

void QgsAttributeTableView::closeEvent( QCloseEvent *e )
Expand Down
1 change: 0 additions & 1 deletion src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -225,7 +225,6 @@ void QgsDualView::initModels( QgsMapCanvas* mapCanvas )

mFilterModel = new QgsAttributeTableFilterModel( mapCanvas, mMasterModel, mMasterModel );

connect( mFilterModel, SIGNAL( filterInvalidated() ), this, SIGNAL( filterChanged() ) );
connect( mFeatureList, SIGNAL( displayExpressionChanged( QString ) ), this, SIGNAL( displayExpressionChanged( QString ) ) );

mFeatureListModel = new QgsFeatureListModel( mFilterModel, mFilterModel );
Expand Down

0 comments on commit 47fa53e

Please sign in to comment.