Hello community,

here is the log from the commit of package kcm_tablet for openSUSE:Factory 
checked in at 2020-08-28 21:20:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kcm_tablet (Old)
 and      /work/SRC/openSUSE:Factory/.kcm_tablet.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kcm_tablet"

Fri Aug 28 21:20:02 2020 rev:10 rq:826714 version:3.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kcm_tablet/kcm_tablet.changes    2020-06-04 
17:57:04.461121599 +0200
+++ /work/SRC/openSUSE:Factory/.kcm_tablet.new.3399/kcm_tablet.changes  
2020-08-28 21:21:25.088325860 +0200
@@ -1,0 +2,7 @@
+Wed Aug 12 09:58:46 UTC 2020 - Wolfgang Bauer <wba...@tmo.at>
+
+- Add patch to fix a possible crash in kde_wacom_tabletfinder
+  (kde#423420, boo#1175126):
+  * Check-for-index-validity-when-switching-tablet-type.patch
+
+-------------------------------------------------------------------

New:
----
  Check-for-index-validity-when-switching-tablet-type.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kcm_tablet.spec ++++++
--- /var/tmp/diff_new_pack.2Rj6EW/_old  2020-08-28 21:21:25.668326141 +0200
+++ /var/tmp/diff_new_pack.2Rj6EW/_new  2020-08-28 21:21:25.672326143 +0200
@@ -28,6 +28,8 @@
 Source:         
https://download.kde.org/stable/%{rname}/%{version}/%{rname}-%{version}.tar.xz
 # PATCH-FIX-UPSTREAM
 Patch0:         0001-Fix-build-with-Qt-5.15.patch
+# PATCH-FIX-UPSTREAM
+Patch1:         Check-for-index-validity-when-switching-tablet-type.patch
 BuildRequires:  extra-cmake-modules
 BuildRequires:  pkgconfig
 BuildRequires:  update-desktop-files

++++++ Check-for-index-validity-when-switching-tablet-type.patch ++++++
>From ee670ec282e81998d2142c1986c963005fc3d264 Mon Sep 17 00:00:00 2001
From: Valerii Malov <jazzv...@gmail.com>
Date: Thu, 2 Jul 2020 22:02:03 +0300
Subject: [PATCH] Check for index validity when switching tablet type

BUG 423420
---
 src/tabletfinder/dialog.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tabletfinder/dialog.cpp b/src/tabletfinder/dialog.cpp
index 75fe7e4..dee5c1c 100644
--- a/src/tabletfinder/dialog.cpp
+++ b/src/tabletfinder/dialog.cpp
@@ -405,7 +405,7 @@ void Dialog::onNormalTabletSet(bool enabled)
 
 void Dialog::onParentTabletSet(bool enabled)
 {
-    if (enabled) {
+    if (enabled && m_ui->listTablets->currentIndex() != -1) {
         Tablet t = m_tabletList.at(m_ui->listTablets->currentIndex());
         t.isTouchSensor = false;
         t.hasPairedID = true;
@@ -418,7 +418,7 @@ void Dialog::onParentTabletSet(bool enabled)
 
 void Dialog::onTouchSensorSet(bool enabled)
 {
-    if (enabled) {
+    if (enabled && m_ui->listTablets->currentIndex() != -1) {
         Tablet t = m_tabletList.at(m_ui->listTablets->currentIndex());
         t.isTouchSensor = true;
         t.hasPairedID = false;
-- 
GitLab


Reply via email to