8 Star 0 Fork 18

src-anolis-os/qt5-qtbase

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-Clicking-the-left-and-right-buttons-crash.patch 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei-liu 提交于 2022-10-13 02:47 . !8feature: add patchs for DDE
From c4aba54472a19a57adbc5bb0111b3c55c3b9043b Mon Sep 17 00:00:00 2001
From: luyaning <luyaning@uniontech.com>
Date: Thu, 4 Jun 2020 14:24:00 +0800
Subject: [PATCH] fix:Clicking the left and right buttons simultaneously causes
a crash
---
src/platformsupport/linuxaccessibility/atspiadaptor.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/platformsupport/linuxaccessibility/atspiadaptor.cpp b/src/platformsupport/linuxaccessibility/atspiadaptor.cpp
index 580cf0e3..235bd715 100644
--- a/src/platformsupport/linuxaccessibility/atspiadaptor.cpp
+++ b/src/platformsupport/linuxaccessibility/atspiadaptor.cpp
@@ -803,6 +803,12 @@ void AtSpiAdaptor::windowActivated(QObject* window, bool active)
return;
QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(window);
+ /*!
+ The window has been quickly activated or disabled will cause a crash.
+ */
+ if (iface == nullptr)
+ return;
+
Q_ASSERT(iface);
Q_ASSERT(!active || iface->isValid());
--
2.20.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/qt5-qtbase.git
git@gitee.com:src-anolis-os/qt5-qtbase.git
src-anolis-os
qt5-qtbase
qt5-qtbase
a8

搜索帮助