Fix inability to drag a menu item to the desktop.

ubuntu/cosmic
Simon Quigley 6 years ago
parent f086ecac8e
commit 8ff1b3cedb

1
debian/changelog vendored

@ -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 <tsimonq2@ubuntu.com> Fri, 13 Jul 2018 22:52:16 -0500

@ -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 <tsujan2000@gmail.com>
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<QUrl> urls;
- urls << QUrl(a->desktopFile().fileName());
+ urls << QUrl::fromLocalFile(a->desktopFile().fileName());
QMimeData *mimeData = new QMimeData();
mimeData->setUrls(urls);

@ -0,0 +1 @@
fix-menu-item-drag-url.patch
Loading…
Cancel
Save