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
  • Loading branch information
wonder-sk committed Nov 5, 2018
1 parent 93e737e commit 68be6df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsproject.cpp
Original file line number Diff line number Diff line change
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 68be6df

Please sign in to comment.