Skip to content
Permalink
Browse files

Fix QGIS Crash on loading WFS/WMS/XYZ layer from GeoNode.

  • Loading branch information
ismailsunni authored and nyalldawson committed Aug 22, 2017
1 parent 92a1550 commit 3d3ff7098a7a45098cb865def8154b082fc803bf
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/providers/ows/qgsgeonodedataitems.cpp
@@ -21,7 +21,7 @@
#include "qgsgeonodenewconnection.h"
#include "qgsgeonoderequest.h"

typedef QList<QgsDataItemProvider *> dataItemProviders_t();
typedef QList<QgsDataItemProvider *> *dataItemProviders_t();

QgsGeoNodeConnectionItem::QgsGeoNodeConnectionItem( QgsDataItem *parent, QString name, QString path, QgsGeoNodeConnection *conn )
: QgsDataCollectionItem( parent, name, path )
@@ -137,7 +137,8 @@ QVector<QgsDataItem *> QgsGeoNodeServiceItem::createChildren()
QString path = pathPrefix + mName;

QVector<QgsDataItem *> items;
Q_FOREACH ( QgsDataItemProvider *pr, dataItemProvidersFn() )
QList<QgsDataItemProvider *> *providerList = dataItemProvidersFn();
Q_FOREACH ( QgsDataItemProvider *pr, *providerList )
{
items = pr->name().startsWith( mServiceName ) ? pr->createDataItems( path, this ) : items;
if ( !items.isEmpty() )

0 comments on commit 3d3ff70

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