Skip to content

Commit fe9594f

Browse files
committedMay 23, 2017
[bugfix] Fixes an unreported crash in WFS
1 parent a14ad32 commit fe9594f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎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, &QProgressDialog::canceled, this, &QgsWFSFeatureDownloader::stop );
175175
connect( mProgressDialog, &QWidget::hide, this, &QgsWFSFeatureDownloader::hideProgressDialog );
176176

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

180184
QString QgsWFSFeatureDownloader::sanitizeFilter( QString filter )

0 commit comments

Comments
 (0)
Please sign in to comment.