Skip to content

Commit f15c886

Browse files
committedFeb 9, 2014
Fix #8852 (crash when removing invalid postgres table from project)
1 parent 20fa54c commit f15c886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/providers/postgres/qgspostgresfeatureiterator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ QgsPostgresFeatureIterator::QgsPostgresFeatureIterator( QgsPostgresProvider* p,
5050
{
5151
mCursorName = QString( "qgisf%1_%2" ).arg( P->mProviderId ).arg( P->mIteratorCounter++ );
5252

53-
P->mActiveIterators << this;
54-
5553
QString whereClause;
5654

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

82+
P->mActiveIterators << this;
83+
8484
mFetched = 0;
8585
}
8686

0 commit comments

Comments
 (0)
Please sign in to comment.