From 0c100b7dd2b30e75b799d806df4ef899fd98e1ea Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Apr 2022 13:07:24 +0100 Subject: gentoo resync : 16.04.2022 --- ...xteditor-5.92.0-fix-crash-w-stale-indexes.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch (limited to 'kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch') diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch new file mode 100644 index 000000000000..b77a72a3e502 --- /dev/null +++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.92.0-fix-crash-w-stale-indexes.patch @@ -0,0 +1,29 @@ +From ad82b876016367bd9765185dba84600985e5d0fd Mon Sep 17 00:00:00 2001 +From: Waqar Ahmed +Date: Fri, 18 Mar 2022 10:14:28 +0500 +Subject: [PATCH] Fix crash with stale indexes + +BUG: 451593 +--- + src/completion/katecompletionmodel.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/completion/katecompletionmodel.cpp b/src/completion/katecompletionmodel.cpp +index 1e241f0d..d9bb8421 100644 +--- a/src/completion/katecompletionmodel.cpp ++++ b/src/completion/katecompletionmodel.cpp +@@ -914,6 +914,11 @@ QModelIndex KateCompletionModel::mapToSource(const QModelIndex &proxyIndex) cons + } + + if (Group *g = groupOfParent(proxyIndex)) { ++ if (!m_rowTable.contains(g)) { ++ qWarning() << Q_FUNC_INFO << "Stale proxy index for which there is no group"; ++ return {}; ++ } ++ + if (proxyIndex.row() >= 0 && proxyIndex.row() < (int)g->filtered.size()) { + ModelRow source = g->filtered[proxyIndex.row()].sourceRow(); + return source.second.sibling(source.second.row(), proxyIndex.column()); +-- +GitLab + -- cgit v1.2.3