Skip to content
Permalink
Browse files
fix project dirtiness when changing layout name
  • Loading branch information
speillet authored and github-actions committed Jul 5, 2021
1 parent fa1a59f commit d97fce23a64b006cc5c2a238ca0d5f98b63fcb72
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/core/layout/qgsprintlayout.cpp
  2. +1 −0 tests/src/core/testqgslayout.cpp
@@ -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
@@ -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()

0 comments on commit d97fce2

Please sign in to comment.