summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-frameworks/plasma/files/plasma-5.56.0-crashfix.patch')
-rw-r--r--kde-frameworks/plasma/files/plasma-5.56.0-crashfix.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/kde-frameworks/plasma/files/plasma-5.56.0-crashfix.patch b/kde-frameworks/plasma/files/plasma-5.56.0-crashfix.patch
new file mode 100644
index 00000000000..844ddf6a234
--- /dev/null
+++ b/kde-frameworks/plasma/files/plasma-5.56.0-crashfix.patch
@@ -0,0 +1,40 @@
+From ebae2d63033647950cf0f9d97410723a8c7db1f3 Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Tue, 12 Mar 2019 07:03:10 +0100
+Subject: Remove crash in plasmashell
+
+Summary: remove bug in plasmashell Bug 405341
+
+Test Plan: can't reproduce bug
+
+Reviewers: dfaure, #frameworks, #plasma, broulik
+
+Reviewed By: #plasma, broulik
+
+Subscribers: broulik, kde-frameworks-devel
+
+Tags: #frameworks
+
+Differential Revision: https://phabricator.kde.org/D19698
+---
+ src/declarativeimports/core/datamodel.cpp | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/declarativeimports/core/datamodel.cpp b/src/declarativeimports/core/datamodel.cpp
+index 50dc6c5..03bea20 100644
+--- a/src/declarativeimports/core/datamodel.cpp
++++ b/src/declarativeimports/core/datamodel.cpp
+@@ -64,7 +64,10 @@ void SortFilterModel::syncRoleNames()
+
+ QHash<int,QByteArray> SortFilterModel::roleNames() const
+ {
+- return sourceModel()->roleNames();
++ if (sourceModel()) {
++ return sourceModel()->roleNames();
++ }
++ return {};
+ }
+
+ int SortFilterModel::roleNameToId(const QString &name) const
+--
+cgit v1.1