Skip to content

Commit

Permalink
Merge pull request #5014 from opengisch/miraculous-layer-validity
Browse files Browse the repository at this point in the history
Add layer observer signal handlers even if the layer is invalid
  • Loading branch information
suricactus authored Feb 7, 2024
2 parents 4f72239 + 4e5367e commit d687869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layerobserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void LayerObserver::addLayerListeners()
{
QgsVectorLayer *vl = qobject_cast<QgsVectorLayer *>( layer );

if ( vl && vl->isValid() )
if ( vl )
{
if ( mObservedLayerIds.contains( vl->id() ) )
continue;
Expand Down

1 comment on commit d687869

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.