Skip to content

Commit

Permalink
Enable topological editing on first TopoGeometry layer creation
Browse files Browse the repository at this point in the history
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 edecf38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <qgsmessagelog.h>
#include <qgsrectangle.h>
#include <qgscoordinatereferencesystem.h>
#include <qgsproject.h>

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

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

mLayerExtent.setMinimal();
Expand Down

0 comments on commit edecf38

Please sign in to comment.