Skip to content

Commit

Permalink
Make sure topo editing button is updated on new/loaded project
Browse files Browse the repository at this point in the history
(cherry picked from commit 68be6df)
  • Loading branch information
wonder-sk authored and nyalldawson committed Nov 6, 2018
1 parent 2f5a87f commit cdf878d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsproject.cpp
Expand Up @@ -665,6 +665,7 @@ void QgsProject::clear()
mLayoutManager->clear();
mSnappingConfig.reset();
emit snappingConfigChanged( mSnappingConfig );
emit topologicalEditingChanged();

mMapThemeCollection.reset( new QgsMapThemeCollection( this ) );
emit mapThemeCollectionChanged();
Expand Down Expand Up @@ -1339,6 +1340,7 @@ bool QgsProject::readProjectFile( const QString &filename )
emit readProject( *doc );
emit readProjectWithContext( *doc, context );
emit snappingConfigChanged( mSnappingConfig );
emit topologicalEditingChanged();

// if all went well, we're allegedly in pristine state
if ( clean )
Expand Down

0 comments on commit cdf878d

Please sign in to comment.