Skip to content

Commit

Permalink
fix singleFile property issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Samweli authored and nyalldawson committed Aug 9, 2021
1 parent 09eab13 commit 7a8b039
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/layout/qgslayoutatlaswidget.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 7a8b039

Please sign in to comment.