Skip to content
Permalink
Browse files

Hide import/export buttons for arcgis services as they do not work (f…

…ixes #15637)

(cherry picked from commit 1c2f0de)
  • Loading branch information
wonder-sk committed Nov 1, 2016
1 parent b798040 commit 629ca8b9860fcf1f07dff554790c207995a90d99
@@ -412,28 +412,7 @@ 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" ), QStringLiteral( "." ),
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 )
void QgsSourceSelectDialog::treeWidgetItemDoubleClicked( const QModelIndex & index )
{
QgsDebugMsg( "double click called" );
QgsOwsConnection connection( mServiceName, cmbConnections->currentText() );
@@ -99,8 +99,6 @@ class GUI_EXPORT QgsSourceSelectDialog : public QDialog, protected Ui::QgsSource
void changeCrsFilter();
void connectToServer();
void filterChanged( const 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 );
@@ -33,6 +33,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 )
@@ -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 )

0 comments on commit 629ca8b

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