Skip to content
Permalink
Browse files

[addlayerbutton] Initialise pointer

  • Loading branch information
elpaso committed Jun 2, 2017
1 parent 2f9b844 commit 402b7ada390a97168755cea6cb01f9b113c72f11
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgsdatasourcemanagerdialog.cpp
@@ -55,7 +55,7 @@ QgsDataSourceManagerDialog::QgsDataSourceManagerDialog( QgsMapCanvas *mapCanvas,
connect( ovl, &QgsOpenVectorLayerDialog::addVectorLayers, this, &QgsDataSourceManagerDialog::vectorLayersAdded );

// Add data provider dialogs
QDialog *dlg;
QDialog *dlg = nullptr;

#ifdef HAVE_POSTGRESQL
addDbProviderDialog( QStringLiteral( "postgres" ), tr( "PostgreSQL" ), QStringLiteral( "/mActionAddPostgisLayer.svg" ) );
@@ -127,7 +127,6 @@ void QgsDataSourceManagerDialog::vectorLayersAdded( const QStringList &layerQStr
}



QDialog *QgsDataSourceManagerDialog::providerDialog( const QString providerKey, const QString providerName, const QString icon )
{
QDialog *dlg = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( providerKey, this, Qt::Widget, true ) );

0 comments on commit 402b7ad

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