Skip to content
Permalink
Browse files

Use correct dialog in source select

  • Loading branch information
nyalldawson committed Dec 23, 2020
1 parent 1f354f5 commit a22ba6f13484622a2df02463ec611a875d4f2700
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/arcgisrest/qgsarcgisrestsourceselect.cpp
@@ -17,7 +17,6 @@

#include "qgsarcgisrestsourceselect.h"
#include "qgsowsconnection.h"
#include "qgsnewhttpconnection.h"
#include "qgsprojectionselectiondialog.h"
#include "qgsexpressionbuilderdialog.h"
#include "qgsproject.h"
@@ -32,6 +31,7 @@
#include "qgsgui.h"
#include "qgsbrowserguimodel.h"
#include "qgsarcgisrestdataitems.h"
#include "qgsnewarcgisrestconnection.h"

#include <QButtonGroup>
#include <QListWidgetItem>
@@ -219,7 +219,7 @@ void QgsArcGisRestSourceSelect::refresh()

void QgsArcGisRestSourceSelect::addEntryToServerList()
{
QgsNewHttpConnection nc( nullptr, QgsNewHttpConnection::ConnectionOther, QStringLiteral( "qgis/connections-arcgisfeatureserver/" ), QString(), QgsNewHttpConnection::FlagShowHttpSettings );
QgsNewArcGisRestConnectionDialog nc( nullptr, QStringLiteral( "qgis/connections-arcgisfeatureserver/" ), QString() );
nc.setWindowTitle( tr( "Create a New ArcGIS REST Server Connection" ) );

if ( nc.exec() )
@@ -231,7 +231,7 @@ void QgsArcGisRestSourceSelect::addEntryToServerList()

void QgsArcGisRestSourceSelect::modifyEntryOfServerList()
{
QgsNewHttpConnection nc( nullptr, QgsNewHttpConnection::ConnectionOther, QStringLiteral( "qgis/connections-arcgisfeatureserver/" ), cmbConnections->currentText(), QgsNewHttpConnection::FlagShowHttpSettings );
QgsNewArcGisRestConnectionDialog nc( nullptr, QStringLiteral( "qgis/connections-arcgisfeatureserver/" ), cmbConnections->currentText() );
nc.setWindowTitle( tr( "Modify ArcGIS REST Server Connection" ) );

if ( nc.exec() )

0 comments on commit a22ba6f

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