Skip to content
Permalink
Browse files
Enable topological editing on first TopoGeometry layer creation
I'm not sure this is an acceptable behavior, but I'm sure users
do want to edit TopoGeometry layers in a topological way.
The problem with this implementation is that topological editing
is enabled for editing of every layer, not just the TopoGeometry
one.
  • Loading branch information
Sandro Santilli committed Feb 19, 2013
1 parent 0f0c981 commit edecf385fddd7d166e134023057998612af6ad58
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/postgres/qgspostgresprovider.cpp
@@ -23,6 +23,7 @@
#include <qgsmessagelog.h>
#include <qgsrectangle.h>
#include <qgscoordinatereferencesystem.h>
#include <qgsproject.h>

#include "qgsvectorlayerimport.h"
#include "qgsprovidercountcalcevent.h"
@@ -132,6 +133,9 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
disconnectDb();
return;
}

// Enable topological editing
QgsProject::instance()->writeEntry( "Digitizing", "/TopologicalEditing", true );
}

mLayerExtent.setMinimal();

0 comments on commit edecf38

Please sign in to comment.