Skip to content

Commit

Permalink
Use new-style configuration for loading widgets from the database
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 20, 2016
1 parent f15284e commit 570fc4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <qgsmessagelog.h>
#include <qgsrectangle.h>
#include <qgscoordinatereferencesystem.h>
#include <qgseditformconfig.h>
#include <qgsconfigurationmap.h>
#include <qgsvectorlayer.h>

#include <QMessageBox>
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 570fc4e

Please sign in to comment.