Closed zty199 closed 4 months ago
TAG Bot
New tag: 5.6.31 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #583
关键摘要:
findChildren<T>
方法来查找子对象,但没有检查content
是否为nullptr
,可能会导致空指针解引用。text_message_count
的初始化应该放在循环内部,以避免在每次迭代时都进行重复的计数。message
进行任何操作,如果只是为了计数,可以考虑直接使用findChildren
而不需要创建临时对象。// TransientType 类型的通知消息,最多只允许同时显示三个
应该放在循环外部,以便于理解代码的意图。是否建议立即修改: 是
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: kegechen, zty199
The full list of commands accepted by this bot can be found here.
when compiled with Qt6, in sendMessage_helper, seems that content could be nullptr when QWebEngineView is DMainWindow's centralWidget
Log: add judgment whether content is nullptr in sendMessage_helper