Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #8852 (crash when removing invalid postgres table from project)
  • Loading branch information
wonder-sk committed Feb 9, 2014
1 parent 20fa54c commit f15c886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresfeatureiterator.cpp
Expand Up @@ -50,8 +50,6 @@ QgsPostgresFeatureIterator::QgsPostgresFeatureIterator( QgsPostgresProvider* p,
{
mCursorName = QString( "qgisf%1_%2" ).arg( P->mProviderId ).arg( P->mIteratorCounter++ );

P->mActiveIterators << this;

QString whereClause;

if ( request.filterType() == QgsFeatureRequest::FilterRect && !P->mGeometryColumn.isNull() )
Expand Down Expand Up @@ -81,6 +79,8 @@ QgsPostgresFeatureIterator::QgsPostgresFeatureIterator( QgsPostgresProvider* p,
return;
}

P->mActiveIterators << this;

mFetched = 0;
}

Expand Down

0 comments on commit f15c886

Please sign in to comment.