diff --git a/debian/changelog b/debian/changelog index 52650ce..00162c1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ libqtxdg (3.2.0-0ubuntu2) UNRELEASED; urgency=medium * Bump Standards-version to 4.1.5, no changes needed. * Run wrap-and-sort. + * Fix inability to drag a menu item to the desktop. -- Simon Quigley Fri, 13 Jul 2018 22:52:16 -0500 diff --git a/debian/patches/fix-menu-item-drag-url.patch b/debian/patches/fix-menu-item-drag-url.patch new file mode 100644 index 0000000..8238a43 --- /dev/null +++ b/debian/patches/fix-menu-item-drag-url.patch @@ -0,0 +1,18 @@ +Description: Fix menu-item drag url + When dragging a menu item to the desktop, it isn't correctly copied because + of an incorrect patch. This fixes that. +Author: Tsu Jan +Bug: https://github.com/lxqt/lxqt/issues/1512 +Applied-Upstream: commit:a26e700 +Last-Update: 2018-07-13 +--- a/qtxdg/xdgmenuwidget.cpp ++++ b/qtxdg/xdgmenuwidget.cpp +@@ -170,7 +170,7 @@ void XdgMenuWidgetPrivate::mouseMoveEven + return; + + QList urls; +- urls << QUrl(a->desktopFile().fileName()); ++ urls << QUrl::fromLocalFile(a->desktopFile().fileName()); + + QMimeData *mimeData = new QMimeData(); + mimeData->setUrls(urls); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..13b1256 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-menu-item-drag-url.patch