Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sonnet for openSUSE:Factory checked 
in at 2026-03-06 18:16:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sonnet (Old)
 and      /work/SRC/openSUSE:Factory/.sonnet.new.561 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sonnet"

Fri Mar  6 18:16:23 2026 rev:129 rq:1336439 version:5.116.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/sonnet/sonnet.changes    2024-11-05 
15:40:39.105146455 +0100
+++ /work/SRC/openSUSE:Factory/.sonnet.new.561/sonnet.changes   2026-03-06 
18:16:30.674968392 +0100
@@ -1,0 +2,5 @@
+Sun Jan 18 04:42:37 UTC 2026 - Илья Индиго <[email protected]>
+
+- Added sonnet-spellcheckdecorator.patch (kde#492444 boo#1256892).
+
+-------------------------------------------------------------------
@@ -1397 +1401,0 @@
-

New:
----
  sonnet-spellcheckdecorator.patch

----------(New B)----------
  New:
- Added sonnet-spellcheckdecorator.patch (kde#492444 boo#1256892).
----------(New E)----------

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

Other differences:
------------------
++++++ sonnet.spec ++++++
--- /var/tmp/diff_new_pack.nRIzyh/_old  2026-03-06 18:16:31.334995915 +0100
+++ /var/tmp/diff_new_pack.nRIzyh/_new  2026-03-06 18:16:31.338996082 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sonnet
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -34,9 +34,8 @@
 Source1:        %{name}-%{version}.tar.xz.sig
 Source2:        frameworks.keyring
 %endif
-#BuildRequires:  aspell-devel
-# Enchant plugin is currently disabled upstream
-#BuildRequires:  enchant-devel
+# PATCH-FIX-UPSTREAM
+Patch0:         %{name}-spellcheckdecorator.patch
 BuildRequires:  extra-cmake-modules >= %{_kf5_version}
 BuildRequires:  fdupes
 BuildRequires:  myspell-dictionaries



++++++ sonnet-spellcheckdecorator.patch ++++++
From: Espen Hustad <[email protected]>
Date: Sun, 28 Sep 2025 15:07:09 +0200
Subject: Ensure parent is alive when removing eventfilters
References: kde#492444 boo#1256892

diff -Pdpru sonnet-5.116.0.orig/src/ui/spellcheckdecorator.cpp 
sonnet-5.116.0/src/ui/spellcheckdecorator.cpp
--- sonnet-5.116.0.orig/src/ui/spellcheckdecorator.cpp  2024-05-04 
14:43:54.000000000 +0300
+++ sonnet-5.116.0/src/ui/spellcheckdecorator.cpp       2026-01-17 
18:16:59.552411132 +0300
@@ -43,7 +43,9 @@ public:
         m_textEdit->viewport()->installEventFilter(q);
     }
 
-    ~SpellCheckDecoratorPrivate()
+    ~SpellCheckDecoratorPrivate() = default;
+
+    void removeEventFilters()
     {
         if (m_plainTextEdit) {
             m_plainTextEdit->removeEventFilter(q);
@@ -55,6 +57,12 @@ public:
         }
     }
 
+    void onParentDestroyed()
+    {
+        m_plainTextEdit = nullptr;
+        m_textEdit = nullptr;
+    }
+
     bool onContextMenuEvent(QContextMenuEvent *event);
     void execSuggestionMenu(const QPoint &pos, const QString &word, const 
QTextCursor &cursor);
     void createDefaultHighlighter();
@@ -223,15 +231,24 @@ SpellCheckDecorator::SpellCheckDecorator
     : QObject(textEdit)
     , d(std::make_unique<SpellCheckDecoratorPrivate>(this, textEdit))
 {
+    connect(textEdit, &QObject::destroyed, this, [this] {
+        d->onParentDestroyed();
+    });
 }
 
 SpellCheckDecorator::SpellCheckDecorator(QPlainTextEdit *textEdit)
     : QObject(textEdit)
     , d(std::make_unique<SpellCheckDecoratorPrivate>(this, textEdit))
 {
+    connect(textEdit, &QObject::destroyed, this, [this] {
+        d->onParentDestroyed();
+    });
 }
 
-SpellCheckDecorator::~SpellCheckDecorator() = default;
+SpellCheckDecorator::~SpellCheckDecorator()
+{
+    d->removeEventFilters();
+}
 
 void SpellCheckDecorator::setHighlighter(Highlighter *highlighter)
 {

Reply via email to