From f446e2750787860b4b559ccbcc36a3db0bf5de35 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 3 Dec 2017 13:32:36 +0100 Subject: kde-frameworks/kio: Fix testtrash with >=Qt-5.9.3 Incorporating Qt-5.7.1 buildfix from upstream commit a208dc70. See also: https://phabricator.kde.org/D8837 Package-Manager: Portage-2.3.16, Repoman-2.3.6 --- .../kio/files/kio-5.40.0-testtrash-qt-5.9.3.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 kde-frameworks/kio/files/kio-5.40.0-testtrash-qt-5.9.3.patch (limited to 'kde-frameworks/kio/files') diff --git a/kde-frameworks/kio/files/kio-5.40.0-testtrash-qt-5.9.3.patch b/kde-frameworks/kio/files/kio-5.40.0-testtrash-qt-5.9.3.patch new file mode 100644 index 00000000000..f3e1112720d --- /dev/null +++ b/kde-frameworks/kio/files/kio-5.40.0-testtrash-qt-5.9.3.patch @@ -0,0 +1,40 @@ +From 05938a167dd4190014d800bb02446e2779a9b3b2 Mon Sep 17 00:00:00 2001 +From: Elvis Angelaccio +Date: Thu, 16 Nov 2017 12:06:41 +0100 +Subject: Fix testtrash with qtbase 5.10 beta 4 + +Summary: +Same fix as in D8836, this time for testtrash. + +Test Plan: +Run testtrash. + +Reviewed By: dfaure + +Differential Revision: https://phabricator.kde.org/D8837 + +*asturm: Fix build with Qt-5.7.1 +--- + src/core/listjob.cpp | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/src/core/listjob.cpp b/src/core/listjob.cpp +index 4b7b510..54a422a 100644 +--- a/src/core/listjob.cpp ++++ b/src/core/listjob.cpp +@@ -117,7 +117,11 @@ void ListJobPrivate::slotListEntries(const KIO::UDSEntryList &list) + itemURL = q->url(); + filename = entry.stringValue(KIO::UDSEntry::UDS_NAME); + Q_ASSERT(!filename.isEmpty()); // we'll recurse forever otherwise :) +- itemURL.setPath(itemURL.path() + '/' + filename); ++ if (itemURL.path() == QLatin1String("/")) { ++ itemURL.setPath(itemURL.path() + filename); ++ } else { ++ itemURL.setPath(itemURL.path() + '/' + filename); ++ } + } + + if (entry.isDir() && !entry.isLink()) { +-- +cgit v0.11.2 + -- cgit v1.2.3-18-g5258