Skip to content
Permalink
Browse files

Remove unused code

  • Loading branch information
elpaso committed Nov 13, 2017
1 parent 79c8f96 commit f177ba3141c272e2f17c7072bd4fb6ffe67de5f1
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/gui/qgsabstractdatasourcewidget.cpp
@@ -38,13 +38,6 @@ const QgsMapCanvas *QgsAbstractDataSourceWidget::mapCanvas() const
void QgsAbstractDataSourceWidget::setupButtons( QDialogButtonBox *buttonBox )
{

if ( mWidgetMode == QgsProviderRegistry::WidgetMode::None )
{
QPushButton *closeButton = new QPushButton( tr( "&Close" ) );
buttonBox->addButton( closeButton, QDialogButtonBox::ApplyRole );
connect( closeButton, &QPushButton::clicked, this, &QgsAbstractDataSourceWidget::addButtonClicked );
}

mAddButton = new QPushButton( tr( "&Add" ) );
mAddButton->setToolTip( tr( "Add selected layers to map" ) );
mAddButton->setEnabled( false );

0 comments on commit f177ba3

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