summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-05-30 17:38:44 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-05-30 17:51:27 +0200
commita61d404f0f2f976a648be4bc6a3c872f7a71f1a4 (patch)
treec3cb861d6c63f97d21226193623a669a996ee65f /kde-frameworks/kio/files
parentgames-engines/scummvm: Add sndio USE flag, fixing automagic dependency (diff)
downloadgentoo-a61d404f0f2f976a648be4bc6a3c872f7a71f1a4.tar.gz
gentoo-a61d404f0f2f976a648be4bc6a3c872f7a71f1a4.tar.bz2
gentoo-a61d404f0f2f976a648be4bc6a3c872f7a71f1a4.zip
kde-frameworks/kio: filenamesearch crashes in KCoreDirLister
Upstream commit a38fcf356de0cbba1ce97c8ef70979ed897a8094 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=437153 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/kio/files')
-rw-r--r--kde-frameworks/kio/files/kio-5.82.0-fix-filenamesearch-crashes.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/kde-frameworks/kio/files/kio-5.82.0-fix-filenamesearch-crashes.patch b/kde-frameworks/kio/files/kio-5.82.0-fix-filenamesearch-crashes.patch
new file mode 100644
index 00000000000..b92139a5187
--- /dev/null
+++ b/kde-frameworks/kio/files/kio-5.82.0-fix-filenamesearch-crashes.patch
@@ -0,0 +1,28 @@
+From a38fcf356de0cbba1ce97c8ef70979ed897a8094 Mon Sep 17 00:00:00 2001
+From: Kai Uwe Broulik <kde@privat.broulik.de>
+Date: Tue, 18 May 2021 19:54:54 +0200
+Subject: [PATCH] [KCoreDirLister] Guard uiDelegate(), it might be null
+
+BUG: 437153
+---
+ src/core/kcoredirlister.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/core/kcoredirlister.cpp b/src/core/kcoredirlister.cpp
+index a836f0aa..58d8791c 100644
+--- a/src/core/kcoredirlister.cpp
++++ b/src/core/kcoredirlister.cpp
+@@ -1288,7 +1288,9 @@ void KCoreDirListerCache::slotResult(KJob *j)
+ Q_EMIT kdl->jobError(job);
+ if (kdl->d->m_autoErrorHandling && !errorShown) {
+ errorShown = true; // do it only once
+- job->uiDelegate()->showErrorMessage();
++ if (job->uiDelegate()) {
++ job->uiDelegate()->showErrorMessage();
++ }
+ }
+ #if KIOCORE_BUILD_DEPRECATED_SINCE(5, 82)
+ kdl->handleError(job);
+--
+2.31.1
+