Skip to content

Commit 4922817

Browse files
committed
[bugfix] Fixes an unreported crash in WFS (backported from master)
(cherry-picked from commit fe9594f)
1 parent 7e089a1 commit 4922817

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/providers/wfs/qgswfsfeatureiterator.cpp‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ void QgsWFSFeatureDownloader::createProgressDialog()
174174
connect( mProgressDialog, SIGNAL( canceled() ), this, SLOT( stop() ) );
175175
connect( mProgressDialog, SIGNAL( hide() ), this, SLOT( hideProgressDialog() ) );
176176

177-
connect( this, SIGNAL( updateProgress( int ) ), mProgressDialog, SLOT( setValue( int ) ) );
177+
// Make sure the progress dialog has not been deleted by another thread
178+
if ( mProgressDialog )
179+
{
180+
connect( this, SIGNAL( updateProgress( int ) ), mProgressDialog, SLOT( setValue( int ) ) );
181+
}
178182
}
179183

180184
QString QgsWFSFeatureDownloader::sanitizeFilter( QString filter )

0 commit comments

Comments
 (0)