Skip to content
Permalink
Browse files
fix project dirtiness when changing layout name
  • Loading branch information
speillet authored and nyalldawson committed Jul 6, 2021
1 parent fa1a59f commit 467560038700fe12ec6c103917fa258edcd1a70d
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 4675600

Please sign in to comment.