Skip to content

Commit

Permalink
[wfs] use QgsWFSNewConnection instead of QgsNewHttpConnection (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonalai authored and nyalldawson committed Oct 17, 2021
1 parent 1c9a476 commit e823fb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/wfs/qgswfsdataitemguiprovider.cpp
Expand Up @@ -16,7 +16,7 @@
#include "qgswfsdataitemguiprovider.h"

#include "qgsmanageconnectionsdialog.h"
#include "qgsnewhttpconnection.h"
#include "qgswfsnewconnection.h"
#include "qgswfsconnection.h"
#include "qgswfsconstants.h"
#include "qgswfsdataitems.h"
Expand Down Expand Up @@ -62,7 +62,7 @@ void QgsWfsDataItemGuiProvider::populateContextMenu( QgsDataItem *item, QMenu *m

void QgsWfsDataItemGuiProvider::newConnection( QgsDataItem *item )
{
QgsNewHttpConnection nc( nullptr, QgsNewHttpConnection::ConnectionWfs, QgsWFSConstants::CONNECTIONS_WFS );
QgsWFSNewConnection nc( nullptr );
nc.setWindowTitle( tr( "Create a New WFS Connection" ) );

if ( nc.exec() )
Expand All @@ -73,7 +73,7 @@ void QgsWfsDataItemGuiProvider::newConnection( QgsDataItem *item )

void QgsWfsDataItemGuiProvider::editConnection( QgsDataItem *item )
{
QgsNewHttpConnection nc( nullptr, QgsNewHttpConnection::ConnectionWfs, QgsWFSConstants::CONNECTIONS_WFS, item->name() );
QgsWFSNewConnection nc( nullptr, item->name() );
nc.setWindowTitle( tr( "Modify WFS Connection" ) );

if ( nc.exec() )
Expand Down

0 comments on commit e823fb8

Please sign in to comment.