Hello community,
here is the log from the commit of package kbibtex for openSUSE:Factory checked in at 2018-09-13 12:12:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kbibtex (Old)
and /work/SRC/openSUSE:Factory/.kbibtex.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kbibtex"
Thu Sep 13 12:12:51 2018 rev:3 rq:635302 version:0.8.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/kbibtex/kbibtex.changes 2018-09-03 10:36:03.268816923 +0200
+++ /work/SRC/openSUSE:Factory/.kbibtex.new/kbibtex.changes 2018-09-13 12:14:03.170122001 +0200
@@ -1,0 +2,5 @@
+Wed Sep 12 10:38:21 UTC 2018 - Cor Blom
+
+- Add kde398136.patch to fix crash when editing element (kde#398136)
+
+-------------------------------------------------------------------
New:
----
kde398136.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kbibtex.spec ++++++
--- /var/tmp/diff_new_pack.hSdZ0y/_old 2018-09-13 12:14:03.650121458 +0200
+++ /var/tmp/diff_new_pack.hSdZ0y/_new 2018-09-13 12:14:03.654121454 +0200
@@ -1,7 +1,7 @@
#
# spec file for package kbibtex
#
-# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,47 +15,50 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+
Name: kbibtex
Version: 0.8.1
-Release: 1
-License: GPL-2.0
+Release: 0
Summary: The BibTeX (Latex) bibliography manager by KDE
-Url: https://userbase.kde.org/KBibTeX/
+License: GPL-2.0-only
Group: Productivity/Publishing/TeX/Utilities
+Url: https://userbase.kde.org/KBibTeX/
Source: http://download.kde.org/stable/KBibTeX/%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE: revert upstream desktop file change to solve rpmlint error
Patch0: desktopfile.diff
-BuildRequires: update-desktop-files
+# PATCH-FIX-UPSTREAM: backported fix for kde#398136
+Patch1: kde398136.patch
BuildRequires: extra-cmake-modules
+BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
-BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Network)
+BuildRequires: pkgconfig(Qt5Widgets)
# Only include WebEngine for platforms that support it
%ifarch %{ix86} x86_64 %{arm} aarch64 mips mips64
BuildRequires: pkgconfig(Qt5WebEngineWidgets)
%else
BuildRequires: pkgconfig(Qt5WebKitWidgets)
%endif
-BuildRequires: pkgconfig(Qt5Test)
-BuildRequires: pkgconfig(Qt5XmlPatterns)
-BuildRequires: pkgconfig(Qt5Concurrent)
-BuildRequires: ki18n-devel
-BuildRequires: kxmlgui-devel
-BuildRequires: kio-devel
-BuildRequires: kiconthemes-devel
-BuildRequires: kitemviews-devel
BuildRequires: kcompletion-devel
-BuildRequires: kparts-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kcrash-devel
BuildRequires: kdoctools-devel
+BuildRequires: ki18n-devel
+BuildRequires: kiconthemes-devel
+BuildRequires: kio-devel
+BuildRequires: kitemviews-devel
+BuildRequires: kparts-devel
BuildRequires: kservice-devel
BuildRequires: kwallet-devel
+BuildRequires: kxmlgui-devel
+BuildRequires: libicu-devel
BuildRequires: libpoppler-qt5-devel
BuildRequires: libqca-qt5-devel
-BuildRequires: libicu-devel
BuildRequires: qoauth-qt5-devel
+BuildRequires: pkgconfig(Qt5Concurrent)
+BuildRequires: pkgconfig(Qt5Test)
+BuildRequires: pkgconfig(Qt5XmlPatterns)
Recommends: %{name}-lang
Requires(post): shared-mime-info
Requires(post): desktop-file-utils
@@ -83,6 +86,7 @@
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
+%patch1 -p1
%build
%cmake_kf5 -d build
++++++ kde398136.patch ++++++
diff -ur a/src/data/entry.cpp b/src/data/entry.cpp
--- a/src/data/entry.cpp 2018-06-21 22:00:30.000000000 +0200
+++ b/src/data/entry.cpp 2018-09-12 00:17:36.471388501 +0200
@@ -169,9 +169,11 @@
int Entry::remove(const QString &key)
{
const QString lcKey = key.toLower();
- for (Entry::ConstIterator it = constBegin(); it != constEnd(); ++it)
- if (it.key().toLower() == lcKey)
- return QMap::remove(it.key());
+ for (Entry::Iterator it = begin(); it != end(); ++it)
+ if (it.key().toLower() == lcKey) {
+ QMap::erase(it);
+ return 1;
+ }
return QMap::remove(key);
}