diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-10-07 23:26:11 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-10-08 00:09:46 +0200 |
commit | 307d11d726c673e0b6c52d59ff849c63421154b4 (patch) | |
tree | ca95a338b80ef7c207d3ed1d5bc456e55772cc40 /kde-plasma/plasma-workspace/files | |
parent | dev-python/vcrpy: 6.0.2 (diff) | |
download | gentoo-307d11d726c673e0b6c52d59ff849c63421154b4.tar.gz gentoo-307d11d726c673e0b6c52d59ff849c63421154b4.tar.bz2 gentoo-307d11d726c673e0b6c52d59ff849c63421154b4.zip |
kde-plasma/plasma-workspace: Fix plasma-browser-integration-host crashes
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=488653
Closes: https://bugs.gentoo.org/941139
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/plasma-workspace/files')
-rw-r--r-- | kde-plasma/plasma-workspace/files/plasma-workspace-6.1.5-fix-p-b-i-wayland-crashes.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.5-fix-p-b-i-wayland-crashes.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.5-fix-p-b-i-wayland-crashes.patch new file mode 100644 index 000000000000..ce519c0e9b7e --- /dev/null +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-6.1.5-fix-p-b-i-wayland-crashes.patch @@ -0,0 +1,36 @@ +From 5751ca2b246b1d43886da13a57539df43793ac8f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?M=C3=A9ven=20Car?= <meven@kde.org> +Date: Sat, 14 Sep 2024 14:02:26 +0200 +Subject: [PATCH] libtaskmanager/waylandtasksmodel: disconnect from + parentWindowChanged in dtor + +As windows destruction might happen in any order, destruction of parent window of +of transient ones will trigger their parentWindowChanged event. + +BUG: 488653 +(cherry picked from commit 561646763d994288d771b0efaa9b2a3e45e810fa) +--- + libtaskmanager/waylandtasksmodel.cpp | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/libtaskmanager/waylandtasksmodel.cpp b/libtaskmanager/waylandtasksmodel.cpp +index 4081b16edf2..85778bc6d59 100644 +--- a/libtaskmanager/waylandtasksmodel.cpp ++++ b/libtaskmanager/waylandtasksmodel.cpp +@@ -845,7 +845,12 @@ WaylandTasksModel::WaylandTasksModel(QObject *parent) + d->init(); + } + +-WaylandTasksModel::~WaylandTasksModel() = default; ++WaylandTasksModel::~WaylandTasksModel() ++{ ++ for (auto &window : d->windows) { ++ QObject::disconnect(window.get(), &PlasmaWindow::parentWindowChanged, this, nullptr); ++ } ++} + + QVariant WaylandTasksModel::data(const QModelIndex &index, int role) const + { +-- +GitLab + |