Skip to content

Commit 1c2f0de

Browse files
committedOct 21, 2016
Hide import/export buttons for arcgis services as they do not work (fixes #15637)
1 parent 75d98ec commit 1c2f0de

File tree

4 files changed

+8
-23
lines changed

4 files changed

+8
-23
lines changed
 

‎src/gui/qgssourceselectdialog.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -413,27 +413,6 @@ void QgsSourceSelectDialog::on_cmbConnections_activated( int index )
413413
QgsOWSConnection::setSelectedConnection( mServiceName, cmbConnections->currentText() );
414414
}
415415

416-
void QgsSourceSelectDialog::on_btnSave_clicked()
417-
{
418-
QgsManageConnectionsDialog dlg( this, QgsManageConnectionsDialog::Export, QgsManageConnectionsDialog::WFS );
419-
dlg.exec();
420-
}
421-
422-
void QgsSourceSelectDialog::on_btnLoad_clicked()
423-
{
424-
QString fileName = QFileDialog::getOpenFileName( this, tr( "Load connections" ), ".",
425-
tr( "XML files (*.xml *XML)" ) );
426-
if ( fileName.isEmpty() )
427-
{
428-
return;
429-
}
430-
431-
QgsManageConnectionsDialog dlg( this, QgsManageConnectionsDialog::Import, QgsManageConnectionsDialog::WFS, fileName );
432-
dlg.exec();
433-
populateConnectionList();
434-
emit connectionsChanged();
435-
}
436-
437416
void QgsSourceSelectDialog::treeWidgetItemDoubleClicked( const QModelIndex& index )
438417
{
439418
QgsDebugMsg( "double click called" );

‎src/gui/qgssourceselectdialog.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ class GUI_EXPORT QgsSourceSelectDialog : public QDialog, protected Ui::QgsSource
9999
void changeCRSFilter();
100100
void connectToServer();
101101
void filterChanged( QString text );
102-
void on_btnLoad_clicked();
103-
void on_btnSave_clicked();
104102
void on_cmbConnections_activated( int index );
105103
void on_buttonBox_helpRequested() const;
106104
void treeWidgetItemDoubleClicked( const QModelIndex & index );

‎src/providers/arcgisrest/qgsafssourceselect.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ QgsAfsSourceSelect::QgsAfsSourceSelect( QWidget* parent, Qt::WindowFlags fl, boo
3232
{
3333
buttonBox->button( QDialogButtonBox::Close )->hide();
3434
}
35+
36+
// import/export of connections not supported yet
37+
btnLoad->hide();
38+
btnSave->hide();
3539
}
3640

3741
bool QgsAfsSourceSelect::connectToService( const QgsOWSConnection &connection )

‎src/providers/arcgisrest/qgsamssourceselect.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ QgsAmsSourceSelect::QgsAmsSourceSelect( QWidget* parent, Qt::WindowFlags fl, boo
3232
{
3333
buttonBox->button( QDialogButtonBox::Close )->hide();
3434
}
35+
36+
// import/export of connections not supported yet
37+
btnLoad->hide();
38+
btnSave->hide();
3539
}
3640

3741
bool QgsAmsSourceSelect::connectToService( const QgsOWSConnection &connection )

0 commit comments

Comments
 (0)
Please sign in to comment.