Skip to content
Permalink
Browse files

QgsQuickMapCanvasMap::onWindowChanged(): silence cppcheck warning, bu…

…t potential bug
  • Loading branch information
rouault committed Jun 2, 2020
1 parent e1bb8e9 commit 238e12ba4eeef4667ca16184656ce669a05817b7
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/quickgui/qgsquickmapcanvasmap.cpp
@@ -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 )
{

0 comments on commit 238e12b

Please sign in to comment.
You can’t perform that action at this time.