summaryrefslogtreecommitdiff
path: root/kde-frameworks/kio/files/kio-5.77.0-crashfix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'kde-frameworks/kio/files/kio-5.77.0-crashfix.patch')
-rw-r--r--kde-frameworks/kio/files/kio-5.77.0-crashfix.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/kde-frameworks/kio/files/kio-5.77.0-crashfix.patch b/kde-frameworks/kio/files/kio-5.77.0-crashfix.patch
new file mode 100644
index 000000000000..d24a0d976c01
--- /dev/null
+++ b/kde-frameworks/kio/files/kio-5.77.0-crashfix.patch
@@ -0,0 +1,29 @@
+From 9dc9e26b9196111eeacb5609b36957f74f5a14c4 Mon Sep 17 00:00:00 2001
+From: Ismael Asensio <isma.af@gmail.com>
+Date: Tue, 22 Dec 2020 22:23:17 +0100
+Subject: [PATCH] RenameDialog: Add missing nullptr initialization
+
+It fixes a crash when pressing `Apply to All` in those cases where
+the action was not present, as the code checks for nullptr
+
+BUG: 430374
+FIXED-IN: 5.78
+---
+ src/widgets/renamedialog.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/widgets/renamedialog.cpp b/src/widgets/renamedialog.cpp
+index ac1d91d2..c3e04753 100644
+--- a/src/widgets/renamedialog.cpp
++++ b/src/widgets/renamedialog.cpp
+@@ -161,6 +161,7 @@ public:
+ bCancel = nullptr;
+ bRename = bSkip = nullptr;
+ bOverwrite = nullptr;
++ bOverwriteWhenOlder = nullptr;
+ bResume = bSuggestNewName = nullptr;
+ bApplyAll = nullptr;
+ m_pLineEdit = nullptr;
+--
+GitLab
+