Skip to content
Permalink
Browse files
fix project dirtiness when changing layout name
  • Loading branch information
speillet authored and nyalldawson committed Jul 21, 2021
1 parent 572299a commit 9f4ba422ca4476def05b0da1749fcda5e24665ad
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
@@ -173,6 +173,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 9f4ba42

Please sign in to comment.