mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -05:00
parent
d64282ddb7
commit
1626565c76
@ -65,6 +65,14 @@ QgsLayoutAtlasWidget::QgsLayoutAtlasWidget( QWidget *parent, QgsPrintLayout *lay
|
||||
}
|
||||
connect( mAtlasFileFormat, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, [ = ]( int ) { changeFileFormat(); } );
|
||||
|
||||
// Disconnect when layout is destroyed
|
||||
connect( layout, &QgsPrintLayout::destroyed, [ = ]
|
||||
{
|
||||
disconnect( mAtlasCoverageLayerComboBox, &QgsMapLayerComboBox::layerChanged, mAtlasSortExpressionWidget, &QgsFieldExpressionWidget::setLayer );
|
||||
disconnect( mAtlasCoverageLayerComboBox, &QgsMapLayerComboBox::layerChanged, mPageNameWidget, &QgsFieldExpressionWidget::setLayer );
|
||||
disconnect( mAtlasCoverageLayerComboBox, &QgsMapLayerComboBox::layerChanged, this, &QgsLayoutAtlasWidget::changeCoverageLayer );
|
||||
} );
|
||||
|
||||
updateGuiElements();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user