Skip to content
Permalink
Browse files
Adds a warning using avoid intersections and topological editing
  • Loading branch information
lbartoletti committed May 17, 2021
1 parent 80e3a94 commit de6c1add7905b446d6f4611fbd6d3863f1a14768
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/app/qgssnappingwidget.cpp
@@ -35,6 +35,7 @@
#include "qgslayertreeview.h"
#include "qgsmapcanvas.h"
#include "qgsmaplayer.h"
#include "qgsmessagebar.h"
#include "qgsproject.h"
#include "qgssnappingconfig.h"
#include "qgssnappinglayertreemodel.h"
@@ -530,12 +531,20 @@ void QgsSnappingWidget::projectAvoidIntersectionModeChanged()
mAllowIntersectionsAction->setChecked( false );
mAvoidIntersectionsCurrentLayerAction->setChecked( true );
mAvoidIntersectionsLayersAction->setChecked( false );
if ( mProject->topologicalEditing() )
{
QgisApp::instance()->messageBar()->pushWarning( tr( "Digitizing Warning" ), tr( "By using both avoid intersections and topological editing, geometries can be transformed automatically. Be careful with your modifications." ) );
}
break;
case QgsProject::AvoidIntersectionsMode::AvoidIntersectionsLayers:
mAvoidIntersectionsModeButton->setDefaultAction( mAvoidIntersectionsLayersAction );
mAllowIntersectionsAction->setChecked( false );
mAvoidIntersectionsCurrentLayerAction->setChecked( false );
mAvoidIntersectionsLayersAction->setChecked( true );
if ( mProject->topologicalEditing() )
{
QgisApp::instance()->messageBar()->pushWarning( tr( "Digitizing Warning" ), tr( "By using both avoid intersections and topological editing, geometries can be transformed automatically. Be careful with your modifications." ) );
}
break;
}
}

0 comments on commit de6c1ad

Please sign in to comment.