Skip to content

Commit

Permalink
Revert "QgsLayoutAtlasWidget: Disconnect signals when layout RIP"
Browse files Browse the repository at this point in the history
This reverts commit 1626565.

Found a better way to delete the widget when designer
dialog is closed.
  • Loading branch information
elpaso committed May 28, 2019
1 parent 2372f9e commit 2729702
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/app/layout/qgslayoutatlaswidget.cpp
Expand Up @@ -65,14 +65,6 @@ QgsLayoutAtlasWidget::QgsLayoutAtlasWidget( QWidget *parent, QgsPrintLayout *lay
}
connect( mAtlasFileFormat, qgis::overload<int>::of( &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();
}

Expand Down

0 comments on commit 2729702

Please sign in to comment.