kcompletion/0001-Fix-regression-caused-due-to-porting-from-operator-t.patch
Christophe Giboudeaux f52e3e6936 Accepting request 866686 from home:luca_b:branches:KDE:Frameworks5
- Add upstream patch to fix Okular search bar no longer closed
  when pressing ESC (kde#431493):
  * 0001-Fix-regression-caused-due-to-porting-from-operator-t.patch

OBS-URL: https://build.opensuse.org/request/show/866686
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kcompletion?expand=0&rev=221
2021-01-26 15:51:35 +00:00

28 lines
984 B
Diff

From 7acda936f06193e9fc85ae5cf9ccc8d65971f657 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Tue, 12 Jan 2021 23:43:19 +0100
Subject: [PATCH] Fix regression caused due to porting from operator+ to
operator|
BUGS: 431493
---
src/klineedit.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/klineedit.cpp b/src/klineedit.cpp
index 1cc9316..8201259 100644
--- a/src/klineedit.cpp
+++ b/src/klineedit.cpp
@@ -1222,7 +1222,7 @@ bool KLineEditPrivate::overrideShortcut(const QKeyEvent *e)
// but doesn't dare force as "stronger than kaction shortcuts"...
else if (e->matches(QKeySequence::SelectAll)) {
return true;
- } else if (qApp->platformName() == QLatin1String("xcb") && (key == Qt::CTRL | Qt::Key_E || key == Qt::CTRL | Qt::Key_U)) {
+ } else if (qApp->platformName() == QLatin1String("xcb") && (key == (Qt::CTRL | Qt::Key_E) || key == (Qt::CTRL | Qt::Key_U))) {
return true;
}
--
2.30.0