Hello community,
here is the log from the commit of package kate for openSUSE:Factory checked in at 2016-10-18 10:15:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kate (Old)
and /work/SRC/openSUSE:Factory/.kate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kate"
Changes:
--------
--- /work/SRC/openSUSE:Factory/kate/kate.changes 2016-10-03 09:35:03.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kate.new/kate.changes 2016-10-18 10:15:31.000000000 +0200
@@ -1,0 +2,11 @@
+Tue Oct 11 20:51:41 UTC 2016 - lbeltrame@kde.org
+
+- KDE Applications 16.08.2
+https://www.kde.org/announcements/announce-applications-16.08.2.php
+
+-------------------------------------------------------------------
+Mon Oct 10 21:36:22 UTC 2016 - hrvoje.senjan@gmail.com
+
+- Try to fix build on Leap 42.1 with newer KF5
+
+-------------------------------------------------------------------
Old:
----
kate-16.08.1.tar.xz
New:
----
kate-16.08.2.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kate.spec ++++++
--- /var/tmp/diff_new_pack.0gnsXg/_old 2016-10-18 10:15:33.000000000 +0200
+++ /var/tmp/diff_new_pack.0gnsXg/_new 2016-10-18 10:15:33.000000000 +0200
@@ -16,8 +16,9 @@
#
+%define _appstreamkpackage 0%(cat %{_kf5_libdir}/cmake/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1)
Name: kate
-Version: 16.08.1
+Version: 16.08.2
Release: 0
Summary: Advanced Text Editor
License: GPL-2.0+
@@ -138,7 +139,7 @@
%{_kf5_sharedir}/katexmltools/
%{_kf5_sharedir}/plasma/
%{_kf5_servicesdir}/
-%if 0%{?sle_version} != 120100
+%if 0%{?_appstreamkpackage}
%{_kf5_appstreamdir}/org.kde.plasma.katesessions.appdata.xml
%endif
++++++ kate-16.08.1.tar.xz -> kate-16.08.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kate-16.08.1/CMakeLists.txt new/kate-16.08.2/CMakeLists.txt
--- old/kate-16.08.1/CMakeLists.txt 2016-09-05 21:10:32.000000000 +0200
+++ new/kate-16.08.2/CMakeLists.txt 2016-10-10 14:24:53.000000000 +0200
@@ -9,7 +9,7 @@
# KDE Application Version, managed by release script
set (KDE_APPLICATIONS_VERSION_MAJOR "16")
set (KDE_APPLICATIONS_VERSION_MINOR "08")
-set (KDE_APPLICATIONS_VERSION_MICRO "1")
+set (KDE_APPLICATIONS_VERSION_MICRO "2")
set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
# we need some parts of the ECM CMake helpers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kate-16.08.1/addons/tabswitcher/tabswitcher.cpp new/kate-16.08.2/addons/tabswitcher/tabswitcher.cpp
--- old/kate-16.08.1/addons/tabswitcher/tabswitcher.cpp 2016-09-05 21:10:32.000000000 +0200
+++ new/kate-16.08.2/addons/tabswitcher/tabswitcher.cpp 2016-10-10 14:24:53.000000000 +0200
@@ -137,6 +137,10 @@
void TabSwitcherPluginView::registerDocument(KTextEditor::Document * document)
{
+ // insert into hash
+ m_documents.insert(document);
+
+ // add to model
auto item = new QStandardItem(iconForDocument(document), document->documentName());
item->setData(QVariant::fromValue(document));
m_model->insertRow(0, item);
@@ -148,6 +152,13 @@
void TabSwitcherPluginView::unregisterDocument(KTextEditor::Document * document)
{
+ // remove from hash
+ if (!m_documents.contains(document)) {
+ return;
+ }
+ m_documents.remove(document);
+
+ // remove from model
const auto rowCount = m_model->rowCount();
for (int i = 0; i < rowCount; ++i) {
auto doc = m_model->item(i)->data().valueKTextEditor::Document*();
@@ -164,6 +175,10 @@
void TabSwitcherPluginView::updateDocumentName(KTextEditor::Document * document)
{
+ if (!m_documents.contains(document)) {
+ return;
+ }
+
const auto rowCount = m_model->rowCount();
for (int i = 0; i < rowCount; ++i) {
auto doc = m_model->item(i)->data().valueKTextEditor::Document*();
@@ -176,7 +191,7 @@
void TabSwitcherPluginView::raiseView(KTextEditor::View * view)
{
- if (!view) {
+ if (!view || !m_documents.contains(view->document())) {
return;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kate-16.08.1/addons/tabswitcher/tabswitcher.h new/kate-16.08.2/addons/tabswitcher/tabswitcher.h
--- old/kate-16.08.1/addons/tabswitcher/tabswitcher.h 2016-09-05 21:10:32.000000000 +0200
+++ new/kate-16.08.2/addons/tabswitcher/tabswitcher.h 2016-10-10 14:24:53.000000000 +0200
@@ -25,6 +25,7 @@
#include