Warning, /graphics/krita/3rdparty/ext_qt/0001-Return-0-for-Window-if-there-is-no-widget.patch is written in an unsupported language. File is not indexed.

0001 From 689127dc81c6298f861335d5b8e237df7cec4822 Mon Sep 17 00:00:00 2001
0002 From: Halla Rempt <halla@valdyas.org>
0003 Date: Fri, 18 Feb 2022 12:58:16 +0100
0004 Subject: [PATCH] Return 0 for Window if there is no widget
0005 
0006 This should be safe: I've checked all calls to window() in the
0007 ui automation module, and they all check whether 0 is returned
0008 before dereferencing the pointer.
0009 
0010 CCBUG:449122
0011 ---
0012  src/widgets/accessible/qaccessiblewidget.cpp | 4 +++-
0013  1 file changed, 3 insertions(+), 1 deletion(-)
0014 
0015 diff --git a/src/widgets/accessible/qaccessiblewidget.cpp b/src/widgets/accessible/qaccessiblewidget.cpp
0016 index c96d213e7b..900a62743b 100644
0017 --- a/src/widgets/accessible/qaccessiblewidget.cpp
0018 +++ b/src/widgets/accessible/qaccessiblewidget.cpp
0019 @@ -225,7 +225,9 @@ bool QAccessibleWidget::isValid() const
0020  QWindow *QAccessibleWidget::window() const
0021  {
0022      const QWidget *w = widget();
0023 -    Q_ASSERT(w);
0024 +
0025 +    if (!w) return 0;
0026 +
0027      QWindow *result = w->windowHandle();
0028      if (!result) {
0029          if (const QWidget *nativeParent = w->nativeParentWidget())
0030 -- 
0031 2.25.1
0032