Skip to content
Permalink
Browse files

Fix cannot add qlr from browser (fixes #42366)

  • Loading branch information
nyalldawson committed Mar 22, 2021
1 parent c260136 commit 45001d747c26efac851bf9ca9acb2ce2868f8415
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 45001d7

Please sign in to comment.