File kde392952.patch of Package kcalcore

From 8c9db8c09db4cc7ac5eda1b93fabb77e5b1e0272 Mon Sep 17 00:00:00 2001
From: Laurent Montel <montel@kde.org>
Date: Tue, 10 Apr 2018 06:47:45 +0200
Subject: Fix Bug 392952 - Regression: port to QTimeZone leads to blowing up
 iCal file size

FIXED-IN: 5.8.0
BUG: 392952

Apply patch from  Jochen Trumpf
thanks a lot
---
 src/icalformat_p.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/icalformat_p.cpp b/src/icalformat_p.cpp
index 118f16b..265abf9 100644
--- a/src/icalformat_p.cpp
+++ b/src/icalformat_p.cpp
@@ -2455,7 +2455,9 @@ icalproperty *ICalFormatImpl::writeICalDateTimeProperty(const icalproperty_kind
 
     if (qtz.isValid()) {
         if (tzUsedList) {
-            tzUsedList->push_back(qtz);
+            if (!tzUsedList->contains(qtz)) {
+                tzUsedList->push_back(qtz);
+            }
         }
 
         icalproperty_add_parameter(
-- 
cgit v0.11.2

openSUSE Build Service is sponsored by