Skip to content
Permalink
Browse files
Fix #8852 (crash when removing invalid postgres table from project)
  • Loading branch information
wonder-sk committed Feb 9, 2014
1 parent 20fa54c commit f15c8869407c89cc771841d8ce218db01c435c7f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresfeatureiterator.cpp
@@ -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() )
@@ -81,6 +79,8 @@ QgsPostgresFeatureIterator::QgsPostgresFeatureIterator( QgsPostgresProvider* p,
return;
}

P->mActiveIterators << this;

mFetched = 0;
}

0 comments on commit f15c886

Please sign in to comment.