diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
commit | bd4aeefe33e63f613512604e47bfca7b2187697d (patch) | |
tree | adb35b5a9a00ee7ea591ab0c987f70167c23b597 /kde-frameworks/ktexteditor/files | |
parent | 48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff) |
gentoo resync : 03.11.2019
Diffstat (limited to 'kde-frameworks/ktexteditor/files')
-rw-r--r-- | kde-frameworks/ktexteditor/files/ktexteditor-5.63.0-crashfix.patch | 27 |
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 |