代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。