QgsQuickMapCanvasMap::onWindowChanged(): silence cppcheck warning, but potential bug

This commit is contained in:
Even Rouault 2020-06-01 23:44:35 +02:00
parent e1bb8e986f
commit 238e12ba4e
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -182,6 +182,8 @@ void QgsQuickMapCanvasMap::renderJobFinished()
void QgsQuickMapCanvasMap::onWindowChanged( QQuickWindow *window )
{
// FIXME? the above disconnect is done potentially on a nullptr
// cppcheck-suppress nullPointerRedundantCheck
disconnect( window, &QQuickWindow::screenChanged, this, &QgsQuickMapCanvasMap::onScreenChanged );
if ( window )
{