Skip to content
Permalink
Browse files

[temporal] Don't connect the temporal indicator for layers missing te…

…mporal properties
  • Loading branch information
nirvn authored and nyalldawson committed Mar 10, 2020
1 parent db73faa commit 82748a5b2f3247a6f09361f92d495ba1ee678f37
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgslayertreeviewtemporalindicator.cpp
@@ -30,7 +30,7 @@ QgsLayerTreeViewTemporalIndicatorProvider::QgsLayerTreeViewTemporalIndicatorProv

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

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

0 comments on commit 82748a5

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