Skip to content

Commit

Permalink
Hide import/export buttons for arcgis services as they do not work (f…
Browse files Browse the repository at this point in the history
…ixes #15637)
  • Loading branch information
wonder-sk committed Oct 21, 2016
1 parent 75d98ec commit 1c2f0de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
21 changes: 0 additions & 21 deletions src/gui/qgssourceselectdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,27 +413,6 @@ void QgsSourceSelectDialog::on_cmbConnections_activated( int index )
QgsOWSConnection::setSelectedConnection( mServiceName, cmbConnections->currentText() );
}

void QgsSourceSelectDialog::on_btnSave_clicked()
{
QgsManageConnectionsDialog dlg( this, QgsManageConnectionsDialog::Export, QgsManageConnectionsDialog::WFS );
dlg.exec();
}

void QgsSourceSelectDialog::on_btnLoad_clicked()
{
QString fileName = QFileDialog::getOpenFileName( this, tr( "Load connections" ), ".",
tr( "XML files (*.xml *XML)" ) );
if ( fileName.isEmpty() )
{
return;
}

QgsManageConnectionsDialog dlg( this, QgsManageConnectionsDialog::Import, QgsManageConnectionsDialog::WFS, fileName );
dlg.exec();
populateConnectionList();
emit connectionsChanged();
}

void QgsSourceSelectDialog::treeWidgetItemDoubleClicked( const QModelIndex& index )
{
QgsDebugMsg( "double click called" );
Expand Down
2 changes: 0 additions & 2 deletions src/gui/qgssourceselectdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ class GUI_EXPORT QgsSourceSelectDialog : public QDialog, protected Ui::QgsSource
void changeCRSFilter();
void connectToServer();
void filterChanged( QString text );
void on_btnLoad_clicked();
void on_btnSave_clicked();
void on_cmbConnections_activated( int index );
void on_buttonBox_helpRequested() const;
void treeWidgetItemDoubleClicked( const QModelIndex & index );
Expand Down
4 changes: 4 additions & 0 deletions src/providers/arcgisrest/qgsafssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ QgsAfsSourceSelect::QgsAfsSourceSelect( QWidget* parent, Qt::WindowFlags fl, boo
{
buttonBox->button( QDialogButtonBox::Close )->hide();
}

// import/export of connections not supported yet
btnLoad->hide();
btnSave->hide();
}

bool QgsAfsSourceSelect::connectToService( const QgsOWSConnection &connection )
Expand Down
4 changes: 4 additions & 0 deletions src/providers/arcgisrest/qgsamssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ QgsAmsSourceSelect::QgsAmsSourceSelect( QWidget* parent, Qt::WindowFlags fl, boo
{
buttonBox->button( QDialogButtonBox::Close )->hide();
}

// import/export of connections not supported yet
btnLoad->hide();
btnSave->hide();
}

bool QgsAmsSourceSelect::connectToService( const QgsOWSConnection &connection )
Expand Down

0 comments on commit 1c2f0de

Please sign in to comment.