Skip to content

Commit f177ba3

Browse files
committedNov 13, 2017
Remove unused code
1 parent 79c8f96 commit f177ba3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed
 

‎src/gui/qgsabstractdatasourcewidget.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ const QgsMapCanvas *QgsAbstractDataSourceWidget::mapCanvas() const
3838
void QgsAbstractDataSourceWidget::setupButtons( QDialogButtonBox *buttonBox )
3939
{
4040

41-
if ( mWidgetMode == QgsProviderRegistry::WidgetMode::None )
42-
{
43-
QPushButton *closeButton = new QPushButton( tr( "&Close" ) );
44-
buttonBox->addButton( closeButton, QDialogButtonBox::ApplyRole );
45-
connect( closeButton, &QPushButton::clicked, this, &QgsAbstractDataSourceWidget::addButtonClicked );
46-
}
47-
4841
mAddButton = new QPushButton( tr( "&Add" ) );
4942
mAddButton->setToolTip( tr( "Add selected layers to map" ) );
5043
mAddButton->setEnabled( false );

0 commit comments

Comments
 (0)
Please sign in to comment.