Skip to content

Commit

Permalink
[WFS provider] Avoid console warning when feedback == nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 3, 2023
1 parent 678d88a commit ada9621
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/wfs/qgswfsprovidermetadata.cpp
Expand Up @@ -290,7 +290,10 @@ QList<QgsProviderSublayerDetails> QgsWfsProviderMetadata::querySublayers( const
timerForHits.setSingleShot( true );
timerForHits.start();
connect( &timerForHits, &QTimer::timeout, &loop, &QEventLoop::quit );
connect( feedback, &QgsFeedback::canceled, &loop, &QEventLoop::quit );
if ( feedback )
{
connect( feedback, &QgsFeedback::canceled, &loop, &QEventLoop::quit );
}
loop.exec( QEventLoop::ExcludeUserInputEvents );
// Make sure to terminate requests in this thread, to avoid potential
// crash in main thread when "requests" goes out of scope.
Expand Down

0 comments on commit ada9621

Please sign in to comment.