Skip to content
Permalink
Browse files

Fix cannot add qlr from browser (fixes #42366)

  • Loading branch information
nyalldawson committed Mar 23, 2021
1 parent e264967 commit ddd506e1a5c664b8ae2bf6f7cb1a025706191292
Showing with 6 additions and 0 deletions.
  1. +5 −0 src/app/qgsappbrowserproviders.cpp
  2. +1 −0 src/app/qgsappbrowserproviders.h
@@ -104,6 +104,11 @@ QgsMimeDataUtils::Uri QgsQlrDataItem::mimeUri() const
return u;
}

QgsMimeDataUtils::UriList QgsQlrDataItem::mimeUris() const
{
return QgsMimeDataUtils::UriList() << QgsQlrDataItem::mimeUri();
}

//
// QgsQlrDataItemProvider
//
@@ -34,6 +34,7 @@ class QgsQlrDataItem : public QgsLayerItem
QgsQlrDataItem( QgsDataItem *parent, const QString &name, const QString &path );
bool hasDragEnabled() const override;
QgsMimeDataUtils::Uri mimeUri() const override;
QgsMimeDataUtils::UriList mimeUris() const override;

};

0 comments on commit ddd506e

Please sign in to comment.