Skip to content

Commit

Permalink
Use correct dialog in source select
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 23, 2020
1 parent 1f354f5 commit a22ba6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/arcgisrest/qgsarcgisrestsourceselect.cpp
Expand Up @@ -17,7 +17,6 @@

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

#include <QButtonGroup>
#include <QListWidgetItem>
Expand Down Expand Up @@ -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() )
Expand All @@ -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() )
Expand Down

0 comments on commit a22ba6f

Please sign in to comment.