summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-11-01 20:37:32 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-11-01 20:39:05 +0100
commit30c5f7e692e0bd2022e60263cb0b878f375ed5dc (patch)
tree128cc5a219df402fc804be7d3a4558644e33f653 /kde-frameworks/ktexteditor/files
parentapp-emacs/quilt-el: Remove old. (diff)
downloadgentoo-30c5f7e692e0bd2022e60263cb0b878f375ed5dc.tar.gz
gentoo-30c5f7e692e0bd2022e60263cb0b878f375ed5dc.tar.bz2
gentoo-30c5f7e692e0bd2022e60263cb0b878f375ed5dc.zip
kde-frameworks/ktexteditor: Fix runtime crash
See also: https://mail.kde.org/pipermail/kde-distro-packagers/2019-October/000389.html KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=413474 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/ktexteditor/files')
-rw-r--r--kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch
new file mode 100644
index 000000000000..f6c867cad656
--- /dev/null
+++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch
@@ -0,0 +1,27 @@
+From f6e72a23052339253daa79095391625cf01c96f1 Mon Sep 17 00:00:00 2001
+From: Christoph Cullmann <cullmann@kde.org>
+Date: Mon, 28 Oct 2019 20:32:13 +0100
+Subject: fix crash
+
+BUG: 413474
+---
+ src/utils/katevariableexpansionhelpers.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/utils/katevariableexpansionhelpers.cpp b/src/utils/katevariableexpansionhelpers.cpp
+index db71d0f..89aab3d 100644
+--- a/src/utils/katevariableexpansionhelpers.cpp
++++ b/src/utils/katevariableexpansionhelpers.cpp
+@@ -278,7 +278,9 @@ KateVariableExpansionDialog::KateVariableExpansionDialog(QWidget *parent)
+ connect(m_listView, &QAbstractItemView::activated, [this, lblDescription, lblCurrentValue](const QModelIndex &index) {
+ if (index.isValid()) {
+ const auto &var = m_variables[m_filterModel->mapToSource(index).row()];
+- const auto name = QStringLiteral("%{") + var.name() + QLatin1Char('}');
++
++ // not auto, don't fall for string builder, see bug 413474
++ const QString name = QStringLiteral("%{") + var.name() + QLatin1Char('}');
+
+ if (parentWidget() && parentWidget()->window()) {
+ auto currentWidget = parentWidget()->window()->focusWidget();
+--
+cgit v1.1