Skip to content
Permalink
Browse files

Use new-style configuration for loading widgets from the database

  • Loading branch information
m-kuhn committed Dec 20, 2016
1 parent f15284e commit 570fc4ef969d2cb0fd71b1e74931d2b608a173b2
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -23,7 +23,7 @@
#include <qgsmessagelog.h>
#include <qgsrectangle.h>
#include <qgscoordinatereferencesystem.h>
#include <qgseditformconfig.h>
#include <qgsconfigurationmap.h>
#include <qgsvectorlayer.h>

#include <QMessageBox>
@@ -1039,7 +1039,9 @@ void QgsPostgresProvider::setEditorWidgets()
QDomDocument doc;
if ( doc.setContent( configTxt ) )
{
config = QgsEditFormConfig::parseEditorWidgetConfig( doc.documentElement() );
QgsConfigurationMap configMap;
configMap.fromXml( doc.documentElement() );
config = configMap.get();
}
else
{

0 comments on commit 570fc4e

Please sign in to comment.
You can’t perform that action at this time.