Skip to content

Commit

Permalink
Fix qt warnings thrown by non-temporal layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 30, 2020
1 parent c774ade commit d1c747c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgslayertreeviewtemporalindicator.cpp
Expand Up @@ -31,7 +31,7 @@ QgsLayerTreeViewTemporalIndicatorProvider::QgsLayerTreeViewTemporalIndicatorProv

void QgsLayerTreeViewTemporalIndicatorProvider::connectSignals( QgsMapLayer *layer )
{
if ( !layer )
if ( !layer || !layer->temporalProperties() )
return;

connect( layer->temporalProperties(), &QgsMapLayerTemporalProperties::changed, this, [ this, layer ]( ) { this->onLayerChanged( layer ); } );
Expand Down

0 comments on commit d1c747c

Please sign in to comment.