Skip to content

Commit

Permalink
fix project dirtiness when changing layout name
Browse files Browse the repository at this point in the history
  • Loading branch information
speillet authored and github-actions[bot] committed Jul 5, 2021
1 parent fa1a59f commit d97fce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/layout/qgsprintlayout.cpp
Expand Up @@ -64,6 +64,7 @@ void QgsPrintLayout::setName( const QString &name )
{
mName = name;
emit nameChanged( name );
layoutProject()->setDirty( true );
}

QDomElement QgsPrintLayout::writeXml( QDomDocument &document, const QgsReadWriteContext &context ) const
Expand Down
1 change: 1 addition & 0 deletions tests/src/core/testqgslayout.cpp
Expand Up @@ -174,6 +174,7 @@ void TestQgsLayout::name()
QString layoutName = QStringLiteral( "test name" );
layout.setName( layoutName );
QCOMPARE( layout.name(), layoutName );
QVERIFY( p.isDirty() );
}

void TestQgsLayout::customProperties()
Expand Down

0 comments on commit d97fce2

Please sign in to comment.