Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixes #18435: QGIS crash when deleting auxiliary layer
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
src/core/qgsvectorlayer.cpp
|
@@ -4304,7 +4304,8 @@ void QgsVectorLayer::setAuxiliaryLayer( QgsAuxiliaryLayer *alayer ) |
|
|
} |
|
|
|
|
|
mAuxiliaryLayer.reset( alayer ); |
|
|
mAuxiliaryLayer->setParent( this ); |
|
|
if ( mAuxiliaryLayer ) |
|
|
mAuxiliaryLayer->setParent( this ); |
|
|
updateFields(); |
|
|
} |
|
|
|
|
|