Warning, /graphics/krita/3rdparty/ext_qt/0001-Check-whether-there-is-a-QGestureRecognizer-at-all.patch is written in an unsupported language. File is not indexed.
0001 From 6dc973e6054224ebd1815d5da0f54bae7a6ef011 Mon Sep 17 00:00:00 2001 0002 From: Halla Rempt <halla@valdyas.org> 0003 Date: Sat, 13 Feb 2021 14:09:53 +0100 0004 Subject: [PATCH 33/47] Check whether there is a QGestureRecognizer at all 0005 0006 See https://bugs.kde.org/show_bug.cgi?id=421707 0007 --- 0008 src/widgets/kernel/qgesturerecognizer.cpp | 2 ++ 0009 1 file changed, 2 insertions(+) 0010 0011 diff --git a/src/widgets/kernel/qgesturerecognizer.cpp b/src/widgets/kernel/qgesturerecognizer.cpp 0012 index 75d091ce4e..ec96214c26 100644 0013 --- a/src/widgets/kernel/qgesturerecognizer.cpp 0014 +++ b/src/widgets/kernel/qgesturerecognizer.cpp 0015 @@ -237,6 +237,8 @@ void QGestureRecognizer::unregisterRecognizer(Qt::GestureType type) 0016 return; 0017 if (!qAppPriv->gestureManager) 0018 return; 0019 + if (!QGestureManager::instance()) 0020 + return; 0021 QGestureManager::instance()->unregisterGestureRecognizer(type); 0022 } 0023 0024 -- 0025 2.20.1.windows.1 0026