Hello community,
here is the log from the commit of package plasma5-integration for
openSUSE:Factory checked in at 2017-02-14 00:39:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plasma5-integration (Old)
and /work/SRC/openSUSE:Factory/.plasma5-integration.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plasma5-integration"
Changes:
--------
--- /work/SRC/openSUSE:Factory/plasma5-integration/plasma5-integration.changes
2017-02-10 09:59:40.375503260 +0100
+++
/work/SRC/openSUSE:Factory/.plasma5-integration.new/plasma5-integration.changes
2017-02-14 00:39:24.506409407 +0100
@@ -1,0 +2,6 @@
+Sun Feb 12 11:01:07 UTC 2017 - [email protected]
+
+- Add patch to fix prefiling of filenames with colons (kde#376365):
+ * 0001-Do-not-treat-filename-in-selection-as-URL.patch
+
+-------------------------------------------------------------------
New:
----
0001-Do-not-treat-filename-in-selection-as-URL.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ plasma5-integration.spec ++++++
--- /var/tmp/diff_new_pack.hLdCmr/_old 2017-02-14 00:39:25.566259777 +0100
+++ /var/tmp/diff_new_pack.hLdCmr/_new 2017-02-14 00:39:25.570259213 +0100
@@ -29,6 +29,8 @@
Group: System/GUI/KDE
Url: http://www.kde.org
Source:
http://download.kde.org/stable/plasma/%{version}/plasma-integration-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM 0001-Do-not-treat-filename-in-selection-as-URL.patch
[email protected] kde#376365 https://phabricator.kde.org/D4579 -- Do not
treat filename in selection as URL
+Patch1: 0001-Do-not-treat-filename-in-selection-as-URL.patch
BuildRequires: extra-cmake-modules >= 5.17.0
BuildRequires: kf5-filesystem
BuildRequires: libQt5Gui-private-headers-devel >= 5.5.0
@@ -77,6 +79,7 @@
%lang_package -n plasma5-integration-plugin
%prep
%setup -q -n plasma-integration-%{version}
+%patch1 -p1
%build
%cmake_kf5 -d build
++++++ 0001-Do-not-treat-filename-in-selection-as-URL.patch ++++++
>From b9298a5f0cd0763d5c7fc58655fa791e0fa60915 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <[email protected]>
Date: Sat, 11 Feb 2017 22:07:54 +0100
Subject: [PATCH] Do not treat filename in selection as URL
Summary:
KFileWidget::setSelection(QString &) accepts either absolute URLs
or relative paths. If the filename contains a :, it gets treated
as a URL and gets rejected. This forces setSelection to parse
it as URL.
CCBUG: 376365
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D4579
---
src/platformtheme/kdeplatformfiledialoghelper.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/platformtheme/kdeplatformfiledialoghelper.cpp
b/src/platformtheme/kdeplatformfiledialoghelper.cpp
index d94060f..a2b775f 100644
--- a/src/platformtheme/kdeplatformfiledialoghelper.cpp
+++ b/src/platformtheme/kdeplatformfiledialoghelper.cpp
@@ -126,7 +126,7 @@ void KDEPlatformFileDialog::selectFile(const QUrl &filename)
{
QUrl dirUrl = filename.adjusted(QUrl::RemoveFilename);
m_fileWidget->setUrl(dirUrl);
- m_fileWidget->setSelection(filename.fileName());
+ m_fileWidget->setSelection(filename.toString());
}
void KDEPlatformFileDialog::setViewMode(QFileDialogOptions::ViewMode view)
--
2.11.0