Skip to content
Permalink
Browse files
fix singleFile property issue
  • Loading branch information
Samweli authored and nyalldawson committed Aug 17, 2021
1 parent 8b0010a commit 5e4da4bf78a0755b8d3ea7e81ce7cce77fcbe268
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/layout/qgslayoutatlaswidget.cpp
@@ -392,7 +392,10 @@ void QgsLayoutAtlasWidget::updateGuiElements()
mAtlasFilenamePatternEdit->setText( mAtlas->filenameExpression() );
mAtlasHideCoverageCheckBox->setCheckState( mAtlas->hideCoverage() ? Qt::Checked : Qt::Unchecked );

bool singleFile = mLayout->customProperty( QStringLiteral( "singleFile" ), true ).toBool();
if ( mLayout->customProperty( QStringLiteral( "singleFile" ) ).isNull() )
mLayout->setCustomProperty( QStringLiteral( "singleFile" ), true );

bool singleFile = mLayout->customProperty( QStringLiteral( "singleFile" ) ).toBool();
mAtlasSingleFileCheckBox->setCheckState( singleFile ? Qt::Checked : Qt::Unchecked );
mAtlasFilenamePatternEdit->setEnabled( !singleFile );
mAtlasFilenameExpressionButton->setEnabled( !singleFile );

0 comments on commit 5e4da4b

Please sign in to comment.