summaryrefslogtreecommitdiff
path: root/media-gfx/krita/files/krita-4.4.5-pykrita-crash-on-exit.patch
blob: 12ebb2fa95a7741452ebc7b1f3bf2af41865f995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 86a38621fbbf96edf489a0efd2b9c24c123e2051 Mon Sep 17 00:00:00 2001
From: Dmitry Kazakov <dimula73@gmail.com>
Date: Tue, 3 Aug 2021 11:57:33 +0300
Subject: [PATCH] Disable finalizing of the PyQt to prevent crash on exit

CCBUG:417465
---
 plugins/extensions/pykrita/plugin/plugin.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/plugins/extensions/pykrita/plugin/plugin.cpp b/plugins/extensions/pykrita/plugin/plugin.cpp
index 028798e2f4..cc06c07fbe 100644
--- a/plugins/extensions/pykrita/plugin/plugin.cpp
+++ b/plugins/extensions/pykrita/plugin/plugin.cpp
@@ -89,11 +89,10 @@ KritaPyQtPlugin::KritaPyQtPlugin(QObject *parent, const QVariantList &)
 
 KritaPyQtPlugin::~KritaPyQtPlugin()
 {
-    // XXX: With Qt 5.14, this crashes Krita on exit. See https://bugs.kde.org/show_bug.cgi?id=417465
-    //      So, for now, we just don't call finalize...
-#if QT_VERSION < QT_VERSION_CHECK(5,14,0)
-    PyKrita::finalize();
-#endif
+    /// XXX: Don't call PyKrita::finalize here, because that can result in a crash
+    ///      deep inside Qt. See https://bugs.kde.org/show_bug.cgi?id=417465
+
+    // PyKrita::finalize();
 }
 
 #include "plugin.moc"
-- 
GitLab