Skip to content
Permalink
Browse files

Fix cannot add qlr from browser (fixes #42366)

  • Loading branch information
nyalldawson authored and github-actions committed Mar 22, 2021
1 parent cd69c28 commit 47bd5d02d310c09f7c7f85fdada38e03df140661
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 47bd5d0

Please sign in to comment.