Accepting request 538578 from KDE:Frameworks5
OBS-URL: https://build.opensuse.org/request/show/538578 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kio?expand=0&rev=54
This commit is contained in:
commit
c05dffa186
34
fix-handling-of-KCookieAdvice_AcceptForSession.patch
Normal file
34
fix-handling-of-KCookieAdvice_AcceptForSession.patch
Normal file
@ -0,0 +1,34 @@
|
||||
From 23d031b1da60e5cf7a36ec2d5fd9affbc9fd4989 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Schwab <schwab@linux-m68k.org>
|
||||
Date: Thu, 2 Nov 2017 15:08:38 +0100
|
||||
Subject: [PATCH] kio: fix handling of KCookieAdvice::AcceptForSession
|
||||
|
||||
Commit 23874cab9d broke the handling of KCookieAdvice::AcceptForSession
|
||||
because strToAdvice(adviceToStr(KCookieAdvice::AcceptForSession)) now
|
||||
returns KCookieAdvice::Dunno. Ignore spaces in the argument of
|
||||
strToAdvice to properly recognize the AcceptForSession setting and
|
||||
restore compatibility with previous configs.
|
||||
|
||||
BUG: 386325
|
||||
|
||||
Differential Revision: https://phabricator.kde.org/D8545
|
||||
---
|
||||
src/kcms/kio/kcookiespolicyselectiondlg.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/kcms/kio/kcookiespolicyselectiondlg.h b/src/kcms/kio/kcookiespolicyselectiondlg.h
|
||||
index 5efb7dad..7ee90245 100644
|
||||
--- a/src/kcms/kio/kcookiespolicyselectiondlg.h
|
||||
+++ b/src/kcms/kio/kcookiespolicyselectiondlg.h
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
if (_str.isEmpty())
|
||||
return KCookieAdvice::Dunno;
|
||||
|
||||
- QString advice = _str.toLower();
|
||||
+ QString advice = _str.toLower().remove(' ');
|
||||
|
||||
if (advice == QLatin1String ("accept"))
|
||||
return KCookieAdvice::Accept;
|
||||
--
|
||||
2.13.6
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 2 14:13:08 UTC 2017 - wbauer@tmo.at
|
||||
|
||||
- Add fix-handling-of-KCookieAdvice_AcceptForSession.patch to
|
||||
fix the "Accept For Session" cookie setting that was not properly
|
||||
respected (boo#1049975, kde#386325)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 23 06:41:41 CEST 2017 - lbeltrame@kde.org
|
||||
|
||||
|
3
kio.spec
3
kio.spec
@ -79,6 +79,8 @@ Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%
|
||||
Source1: baselibs.conf
|
||||
# PATCH-FIX-OPENSUSE kio_help-fallback-to-kde4-docs.patch -- allow kio_help to see into kde4 documentation, needed especially for khelpcenter5
|
||||
Patch0: kio_help-fallback-to-kde4-docs.patch
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: fix-handling-of-KCookieAdvice_AcceptForSession.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -125,6 +127,7 @@ Development files.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%cmake_kf5 -d build
|
||||
|
Loading…
Reference in New Issue
Block a user