Revert data provider key on items (still waiting for Peter answer)

This commit is contained in:
Alessandro Pasotti 2020-07-16 19:04:15 +02:00
parent 98496a2952
commit 9cb34b6c4b

View File

@ -777,7 +777,7 @@ QgsDataItem *QgsBrowserModel::addProviderRootItem( QgsDataItemProvider *pr )
if ( item )
{
// make sure the top level key is set always
item->setProviderKey( pr->dataProviderKey() );
item->setProviderKey( pr->name() );
// Forward the signal from the root items to the model (and then to the app)
connect( item, &QgsDataItem::connectionsChanged, this, &QgsBrowserModel::onConnectionsChanged );
QgsDebugMsgLevel( "Add new top level item : " + item->name(), 4 );