mirror of
https://github.com/qgis/QGIS.git
synced 2025-07-14 00:04:06 -04:00
QgsQuickMapCanvasMap::onWindowChanged(): silence cppcheck warning, but potential bug
This commit is contained in:
parent
e1bb8e986f
commit
238e12ba4e
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user