From 8b07039f5e883f5f00896504c2f17c170a5a375d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E6=9C=8B=E7=A8=8B?= Date: Mon, 8 Mar 2021 10:08:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E7=9A=84=E5=BA=94=E7=94=A8=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=89=8D=E5=90=8E=E5=90=AB=E6=9C=89=E7=A9=BA=E6=A0=BC=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后端的接口传递过来的数据可能有部分空白信息,这里提前做一下处理,防止出异常 Log: 修复可能出现的应用名称前后含有空格问题 Task: https://pms.uniontech.com/zentao/task-view-64795.html Change-Id: Ia2dea4a4d24b7ef152cb8ad3123cf1a94c8e5220 --- frame/item/appitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index cfce7162b..a3347a016 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -550,9 +550,9 @@ QWidget *AppItem::popupTips() if (!m_windowInfos.isEmpty()) { const quint32 currentWindow = m_itemEntryInter->currentWindow(); Q_ASSERT(m_windowInfos.contains(currentWindow)); - m_appNameTips->setText(m_windowInfos[currentWindow].title); + m_appNameTips->setText(m_windowInfos[currentWindow].title.simplified()); } else { - m_appNameTips->setText(m_itemEntryInter->name()); + m_appNameTips->setText(m_itemEntryInter->name().simplified()); } return m_appNameTips;